diff options
author | Melanie Blower <melanie.blower@intel.com> | 2020-05-01 06:36:58 -0700 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2020-05-01 06:36:58 -0700 |
commit | 85dc033caccaa6ab919d57f9759290be41240146 (patch) | |
tree | 11d6614b7f06ad9e4631fd64cae3e9a8f66ca7d6 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5486e00dc3e3bb9969f1e8dbddfd18bb92c99e56 (diff) | |
download | llvm-85dc033caccaa6ab919d57f9759290be41240146.zip llvm-85dc033caccaa6ab919d57f9759290be41240146.tar.gz llvm-85dc033caccaa6ab919d57f9759290be41240146.tar.bz2 |
Revert "Add support for #pragma float_control"
This reverts commit 4f1e9a17e9d28bdfd035313c96b3a5d4c91a7733.
due to fail on buildbot, sorry for the noise
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 391f0e9..b327fa9 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -2455,7 +2455,7 @@ static const StringRef GetInputKindName(InputKind IK) { static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, const TargetOptions &TargetOpts, - PreprocessorOptions &PPOpts, CodeGenOptions &CGOpts, + PreprocessorOptions &PPOpts, DiagnosticsEngine &Diags) { // FIXME: Cleanup per-file based stuff. LangStandard::Kind LangStd = LangStandard::lang_unspecified; @@ -3187,19 +3187,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.UnsafeFPMath = Args.hasArg(OPT_menable_unsafe_fp_math) || Args.hasArg(OPT_cl_unsafe_math_optimizations) || Args.hasArg(OPT_cl_fast_relaxed_math); - Opts.AllowFPReassoc = Opts.FastMath || CGOpts.Reassociate; - Opts.NoHonorNaNs = - Opts.FastMath || CGOpts.NoNaNsFPMath || Opts.FiniteMathOnly; - Opts.NoHonorInfs = - Opts.FastMath || CGOpts.NoInfsFPMath || Opts.FiniteMathOnly; - Opts.NoSignedZero = Opts.FastMath || CGOpts.NoSignedZeros; - Opts.AllowRecip = Opts.FastMath || CGOpts.ReciprocalMath; - // Currently there's no clang option to enable this individually - Opts.ApproxFunc = Opts.FastMath; - Opts.denormalIsIEEE = - !(CGOpts.FPDenormalMode.isValid() && CGOpts.FP32DenormalMode.isValid()) || - (CGOpts.FPDenormalMode == llvm::DenormalMode::getIEEE() && - CGOpts.FP32DenormalMode == llvm::DenormalMode::getIEEE()); if (Arg *A = Args.getLastArg(OPT_ffp_contract)) { StringRef Val = A->getValue(); @@ -3653,7 +3640,7 @@ bool CompilerInvocation::CreateFromArgs(CompilerInvocation &Res, // Other LangOpts are only initialized when the input is not AST or LLVM IR. // FIXME: Should we really be calling this for an Language::Asm input? ParseLangArgs(LangOpts, Args, DashX, Res.getTargetOpts(), - Res.getPreprocessorOpts(), Res.getCodeGenOpts(), Diags); + Res.getPreprocessorOpts(), Diags); if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC) LangOpts.ObjCExceptions = 1; if (T.isOSDarwin() && DashX.isPreprocessed()) { |