Making the code compliant to the documentation about Floating Point

support default values for C/C++. FPP-MODEL=PRECISE enables FFP-CONTRACT
(FMA is enabled).
This commit is contained in:
Zahira Ammarguellat 2021-11-15 14:31:59 -05:00
parent da327e7290
commit 95edd7f53e
1 changed files with 10 additions and 5 deletions

View File

@ -205,11 +205,16 @@ Arm and AArch64 Support in Clang
Floating Point Support in Clang Floating Point Support in Clang
------------------------------- -------------------------------
- The -ffp-model=precise now implies -ffp-contract=on rather than - The default setting of FP contraction (FMA) is now -ffp-contract=on (for
-ffp-contract=fast, and the documentation of these features has been languages other than CUDA/HIP) even when optimization is off. Previously,
clarified. Previously, the documentation claimed that -ffp-model=precise was the default behavior was equivalent to -ffp-contract=off (-ffp-contract
the default, but this was incorrect because the precise model implied was not set).
-ffp-contract=fast, whereas the default behavior is -ffp-contract=on. Related to this, the switch -ffp-model=precise now implies -ffp-contract=on
rather than -ffp-contract=fast, and the documentation of these features has
been clarified. Previously, the documentation claimed that -ffp-model=precise
was the default, but this was incorrect because the precise model implied
-ffp-contract=fast, wheras the (now corrected) default behavior is
-ffp-contract=on.
-ffp-model=precise is now exactly the default mode of the compiler. -ffp-model=precise is now exactly the default mode of the compiler.
Internal API Changes Internal API Changes