From 09193f20a13e8c3f4196dcc0883d74396f44c3cf Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 18 Feb 2022 09:47:08 +0000 Subject: 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 --- clang/lib/Parse/ParseStmt.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'clang/lib/Parse/ParseStmt.cpp') 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(); -- cgit v1.1