summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-09-23 20:32:52 +0000
committerRenato Golin <renato.golin@linaro.org>2016-09-23 20:32:52 +0000
commitfa007aeef4a81647dfb428b87960ed84a649f29c (patch)
tree618c7650fb3aa1e30b822fec9c1d4211d6ab90b9 /clang/lib/Frontend/CompilerInvocation.cpp
parent0d44d9441272d855d680e0e7f63418b87f64cefa (diff)
downloadbcm5719-llvm-fa007aeef4a81647dfb428b87960ed84a649f29c.tar.gz
bcm5719-llvm-fa007aeef4a81647dfb428b87960ed84a649f29c.zip
Revert "set the underlying value of “#pragma STDC FP_CONTRACT” on by default"
This reverts commit r282259, as it broke the AArch64 test-suite bots. llvm-svn: 282289
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 52282e94f4d..c3fbda114ef 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2445,12 +2445,6 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res,
if (Arch == llvm::Triple::spir || Arch == llvm::Triple::spir64) {
Res.getDiagnosticOpts().Warnings.push_back("spir-compat");
}
-
- if ((LangOpts.C11 || LangOpts.C99 || LangOpts.CPlusPlus) &&
- (CodeGenOptions::FPC_On == Res.getCodeGenOpts().getFPContractMode()) &&
- !LangOpts.CUDA)
- LangOpts.DefaultFPContract = 1;
-
return Success;
}
OpenPOWER on IntegriCloud