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/Parse/ParseStmt.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/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index cadedf6..ee07775 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -1153,16 +1153,6 @@ StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) { if (R.isUsable()) Stmts.push_back(R.get()); } - // Warn the user that using option `-ffp-eval-method=source` on a - // 32-bit target and feature `sse` disabled, or using - // `pragma clang fp eval_method=source` and feature `sse` disabled, is not - // supported. - if (!PP.getTargetInfo().supportSourceEvalMethod() && - (PP.getLastFPEvalPragmaLocation().isValid() || - PP.getCurrentFPEvalMethod() == - LangOptions::FPEvalMethodKind::FEM_Source)) - Diag(Tok.getLocation(), - diag::warn_no_support_for_eval_method_source_on_m32); SourceLocation CloseLoc = Tok.getLocation(); |