diff options
author | Florian Hahn <flo@fhahn.com> | 2022-02-18 09:47:08 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2022-02-18 11:04:00 +0000 |
commit | 09193f20a13e8c3f4196dcc0883d74396f44c3cf (patch) | |
tree | 6e46215beb5224717a5ccc202223c99717ff2b6e /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | b47be47ac2871b6f63f4acbaea8fa5e311f1ecc5 (diff) | |
download | llvm-09193f20a13e8c3f4196dcc0883d74396f44c3cf.zip llvm-09193f20a13e8c3f4196dcc0883d74396f44c3cf.tar.gz llvm-09193f20a13e8c3f4196dcc0883d74396f44c3cf.tar.bz2 |
Revert "Add support for floating-point option `ffp-eval-method` and for"
This reverts commit 32b73bc6ab8234b670c34d5ef999300e072cc706.
This breaks builds on macOS in some configurations, because
__FLT_EVAL_METHOD__ is set to an unexpected value.
E.g.
https://green.lab.llvm.org/green/job/clang-stage1-RA/28282/consoleFull#129538464349ba4694-19c4-4d7e-bec5-911270d8a58c
More details available in the review thread
https://reviews.llvm.org/D109239
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index ff507e2..bf8a0b2 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -1136,6 +1136,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI, } // Macros to control C99 numerics and <float.h> + Builder.defineMacro("__FLT_EVAL_METHOD__", Twine(TI.getFloatEvalMethod())); Builder.defineMacro("__FLT_RADIX__", "2"); Builder.defineMacro("__DECIMAL_DIG__", "__LDBL_DECIMAL_DIG__"); |