This is an archive of the discontinued LLVM Phabricator instance.

Add support for clang-cl's option -fexcess-precision.
ClosedPublic

Authored by zahiraam on Jan 17 2023, 6:15 AM.

Details

Summary

This option is useful for clang and clang-cl.

Diff Detail

Event Timeline

zahiraam created this revision.Jan 17 2023, 6:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 6:15 AM
zahiraam requested review of this revision.Jan 17 2023, 6:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 6:15 AM
zahiraam updated this revision to Diff 489833.Jan 17 2023, 8:21 AM
zahiraam retitled this revision from Add support for clang-cl's option /Qfexcess-precision. to Add support for clang-cl's option /fexcess-precision..
zahiraam edited the summary of this revision. (Show Details)
mdtoguchi added inline comments.Jan 18 2023, 6:47 AM
clang/include/clang/Driver/Options.td
6661

To expose to clang-cl, can we just make the original option a CoreOption instead of adding an alias of the same name here?

zahiraam updated this revision to Diff 490183.Jan 18 2023, 8:34 AM
zahiraam marked an inline comment as done.
zahiraam retitled this revision from Add support for clang-cl's option /fexcess-precision. to Add support for clang-cl's option -fexcess-precision..Jan 20 2023, 5:26 AM
mdtoguchi accepted this revision.Jan 20 2023, 6:38 AM
This revision is now accepted and ready to land.Jan 20 2023, 6:38 AM
This revision was landed with ongoing or failed builds.Jan 20 2023, 8:25 AM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Jan 20 2023, 11:21 AM

This breaks tests on macOS: http://45.33.8.238/macm1/53215/step_7.txt

Please take a look and revert for now if it takes a while to fix.

This breaks tests on macOS: http://45.33.8.238/macm1/53215/step_7.txt

Please take a look and revert for now if it takes a while to fix.

@thakis I reverted it. The fast value of the option doesn't seem to be working for clang-cl on Mac!