[PATCH] D62731: [RFC] Add support for options -frounding-math, -fp-model=, and -fp-exception-behavior=, : Specify floating point behavior
Melanie Blower via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 8 11:36:04 PDT 2019
mibintc marked 2 inline comments as done.
mibintc added inline comments.
================
Comment at: clang/include/clang/Driver/Options.td:927
def fdenormal_fp_math_EQ : Joined<["-"], "fdenormal-fp-math=">, Group<f_Group>, Flags<[CC1Option]>;
+def ffp_model_EQ : Joined<["-"], "ffp-model=">, Group<f_Group>, Flags<[DriverOption]>,
+ HelpText<"Controls the semantics of floating-point calculations.">;
----------------
The ffp-model= option is just a Driver option, it is rewritten into combinations of lower level options like ffp-exception-behavior and frounding-math: it's not a cc1 option.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2326
bool SignedZeros = true;
- bool TrappingMath = true;
+ bool TrappingMath = false;
+ bool RoundingFPMath = false;
----------------
By default, floating point exceptions are masked. Previously this was set to true, but the value wasn't used. This patch implements support for trapping-math
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62731/new/
https://reviews.llvm.org/D62731
More information about the cfe-commits
mailing list