aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseStmt.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2022-02-18 09:47:08 +0000
committerFlorian Hahn <flo@fhahn.com>2022-02-18 11:04:00 +0000
commit09193f20a13e8c3f4196dcc0883d74396f44c3cf (patch)
tree6e46215beb5224717a5ccc202223c99717ff2b6e /clang/lib/Parse/ParseStmt.cpp
parentb47be47ac2871b6f63f4acbaea8fa5e311f1ecc5 (diff)
downloadllvm-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.cpp10
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();