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
"-fexperimental-isel support is incomplete for this architecture at the current optimization level">,
InGroup<ExperimentalISel>;
-def warn_drv_experimental_fp_control_incomplete_opt : Warning<
- "Support for floating point control option %0 is incomplete and experimental">,
- InGroup<ExperimentalFloatControl>;
-
def warn_drv_moutline_unsupported_opt : Warning<
"The '%0' architecture does not support -moutline; flag ignored">,
InGroup<OptionIgnored>;
// Warning for the experimental-isel options.
def ExperimentalISel : DiagGroup<"experimental-isel">;
-// Warning for the experimental float control options.
-def ExperimentalFloatControl : DiagGroup<"experimental-float-control">;
-
// A warning group specifically for warnings related to function
// multiversioning.
def FunctionMultiVersioning : DiagGroup<"function-multiversion">;
switch (optID) {
default:
break;
- case options::OPT_frounding_math:
- case options::OPT_ftrapping_math:
- case options::OPT_ffp_exception_behavior_EQ:
- D.Diag(clang::diag::warn_drv_experimental_fp_control_incomplete_opt)
- << A->getOption().getName();
- break;
case options::OPT_ffp_model_EQ: {
- D.Diag(clang::diag::warn_drv_experimental_fp_control_incomplete_opt)
- << A->getOption().getName();
// If -ffp-model= is seen, reset to fno-fast-math
HonorINFs = true;
HonorNaNs = true;