summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-11-18 10:45:23 -0800
committerEric Christopher <echristo@gmail.com>2019-11-18 10:46:48 -0800
commit30e7ee3c4bac4a12ea584a879aa320bd4e035cc2 (patch)
tree3c93193eeac41921667a7e2e05fd207cf19670dd /clang/lib/Frontend/CompilerInvocation.cpp
parenta77b66a05625ea4271c2d76f65428cce02e4699e (diff)
downloadbcm5719-llvm-30e7ee3c4bac4a12ea584a879aa320bd4e035cc2.tar.gz
bcm5719-llvm-30e7ee3c4bac4a12ea584a879aa320bd4e035cc2.zip
Temporarily Revert "Add support for options -frounding-math, ftrapping-math, -ffp-model=, and -ffp-exception-behavior="
and a follow-up NFC rearrangement as it's causing a crash on valid. Testcase is on the original review thread. This reverts commits af57dbf12e54f3a8ff48534bf1078f4de104c1cd and e6584b2b7b2de06f1e59aac41971760cac1e1b79
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 26221a89818..79975722a47 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -3148,36 +3148,6 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Val;
}
- if (Args.hasArg(OPT_frounding_math)) {
- Opts.setFPRoundingMode(LangOptions::FPR_Dynamic);
- }
-
- if (Args.hasArg(OPT_fno_rounding_math)) {
- Opts.setFPRoundingMode(LangOptions::FPR_ToNearest);
- }
-
- if (Args.hasArg(OPT_ftrapping_math)) {
- Opts.setFPExceptionMode(LangOptions::FPE_Strict);
- }
-
- if (Args.hasArg(OPT_fno_trapping_math)) {
- Opts.setFPExceptionMode(LangOptions::FPE_Ignore);
- }
-
- LangOptions::FPExceptionModeKind FPEB = LangOptions::FPE_Ignore;
- if (Arg *A = Args.getLastArg(OPT_ffp_exception_behavior_EQ)) {
- StringRef Val = A->getValue();
- if (Val.equals("ignore"))
- FPEB = LangOptions::FPE_Ignore;
- else if (Val.equals("maytrap"))
- FPEB = LangOptions::FPE_MayTrap;
- else if (Val.equals("strict"))
- FPEB = LangOptions::FPE_Strict;
- else
- Diags.Report(diag::err_drv_invalid_value) << A->getAsString(Args) << Val;
- Opts.setFPExceptionMode(FPEB);
- }
-
Opts.RetainCommentsFromSystemHeaders =
Args.hasArg(OPT_fretain_comments_from_system_headers);
OpenPOWER on IntegriCloud