Skip to content

Commit 553a727

Browse files
committed
[clang] Remove -Wexperimental-float-control.
Summary: Per D62731, the behavior of clang with `-frounding-math` is no worse than when the rounding flag was completely ignored, so remove this unnecessary warning. Reviewers: mibintc, chandlerc, echristo, rjmccall, kpn, erichkeane, rsmith, andrew.w.kaylor Reviewed By: mibintc Subscribers: merge_guards_bot, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D71671
1 parent 56ab485 commit 553a727

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,6 @@ def warn_drv_experimental_isel_incomplete_opt : Warning<
441441
"-fexperimental-isel support is incomplete for this architecture at the current optimization level">,
442442
InGroup<ExperimentalISel>;
443443

444-
def warn_drv_experimental_fp_control_incomplete_opt : Warning<
445-
"Support for floating point control option %0 is incomplete and experimental">,
446-
InGroup<ExperimentalFloatControl>;
447-
448444
def warn_drv_moutline_unsupported_opt : Warning<
449445
"The '%0' architecture does not support -moutline; flag ignored">,
450446
InGroup<OptionIgnored>;

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,6 @@ def SpirCompat : DiagGroup<"spir-compat">;
11371137
// Warning for the experimental-isel options.
11381138
def ExperimentalISel : DiagGroup<"experimental-isel">;
11391139

1140-
// Warning for the experimental float control options.
1141-
def ExperimentalFloatControl : DiagGroup<"experimental-float-control">;
1142-
11431140
// A warning group specifically for warnings related to function
11441141
// multiversioning.
11451142
def FunctionMultiVersioning : DiagGroup<"function-multiversion">;

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,15 +2440,7 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
24402440
switch (optID) {
24412441
default:
24422442
break;
2443-
case options::OPT_frounding_math:
2444-
case options::OPT_ftrapping_math:
2445-
case options::OPT_ffp_exception_behavior_EQ:
2446-
D.Diag(clang::diag::warn_drv_experimental_fp_control_incomplete_opt)
2447-
<< A->getOption().getName();
2448-
break;
24492443
case options::OPT_ffp_model_EQ: {
2450-
D.Diag(clang::diag::warn_drv_experimental_fp_control_incomplete_opt)
2451-
<< A->getOption().getName();
24522444
// If -ffp-model= is seen, reset to fno-fast-math
24532445
HonorINFs = true;
24542446
HonorNaNs = true;

0 commit comments

Comments
 (0)