[PATCH] D119290: [Clang] Add support for -fcx-limited-range, -fcx-fortran-rules options.

Michael D Toguchi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 23 07:27:10 PST 2022


mdtoguchi added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:1853
+def fcx_fortran_rules : Flag<["-"], "fcx-fortran-rules">, Group<f_Group>;
+def fnocx_fortran_rules : Flag<["-"], "fnocx-fortran-rules">, Group<f_Group>;
+def cx_rangeEQ : Joined<["-"], "fcx-range=">, Group<f_Group>, Flags<[CC1Option]>,
----------------
Typical negate syntax would use `-fno-cx-*`


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:2958
       FPContract = "fast";
+      CxRangeArg = LangOptions::CX_NoNan;
       break;
----------------
Is there any need to disable any settings for `-fno-fast-math`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119290/new/

https://reviews.llvm.org/D119290



More information about the cfe-commits mailing list