Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang-cl] Increase /fp flag fidelity
They were mapped as follows: - /fp:except to --ftrapping-math - /fp:except- to --fno-trapping-math - /fp:strict to --fno-fast-math - /fp:precise to --fno-fast-math Let's map them as follows: - /fp:except to --ffp-exception-behavior=strict - /fp:except- to --ffp-exception-behavior=ignore - /fp:strict to --ffp-model=strict - /fp:precise to --ffp-model=ignore I believe the changes to /fp:except are technically a no-op but it makes the mapping a lot clearer. The changes for /fp:strict and /fp:precise are not no-ops, they now match MSVC's behavior. While we are here, also add support for /fp:contract by mapping it to -ffp-contract=on.
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters