[PATCH] D98923: [Driver] Pass -fexperimental-strict-floating-point to cc1 if it is specified
Jim Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 19 00:27:01 PDT 2021
Jim created this revision.
Jim added a reviewer: kpn.
Jim requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
In my case, it has to enable strict floating-point by driver for default unsupported target.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98923
Files:
clang/lib/Driver/ToolChains/Clang.cpp
Index: clang/lib/Driver/ToolChains/Clang.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Clang.cpp
+++ clang/lib/Driver/ToolChains/Clang.cpp
@@ -5386,6 +5386,9 @@
if (Args.hasArg(options::OPT_fexperimental_new_constant_interpreter))
CmdArgs.push_back("-fexperimental-new-constant-interpreter");
+ if (Args.hasArg(options::OPT_fexperimental_strict_floating_point))
+ CmdArgs.push_back("-fexperimental-strict-floating-point");
+
if (Arg *A = Args.getLastArg(options::OPT_fbracket_depth_EQ)) {
CmdArgs.push_back("-fbracket-depth");
CmdArgs.push_back(A->getValue());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98923.331777.patch
Type: text/x-patch
Size: 646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210319/12db15d4/attachment.bin>
More information about the cfe-commits
mailing list