[PATCH] D122155: Add warning when eval-method is set in the presence of value unsafe floating-point calculations.
Zahira Ammarguellat via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 22 12:27:10 PDT 2022
zahiraam added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticFrontendKinds.td:50-53
+def warn_eval_method_setting_via_option_in_value_unsafe_context : Warning<
+ "setting the eval method via '-ffp-eval-method' has not effect when numeric "
+ "results of floating-point calculations aren't value-safe.">,
+ InGroup<IncompatibleFPOpts>;
----------------
aaron.ballman wrote:
> Unless you have a strong reason for this to be a warning, this seems like a situation we should diagnose as an error with a much clearer message.
May be @andrew.w.kaylor would weigh in on this?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122155/new/
https://reviews.llvm.org/D122155
More information about the cfe-commits
mailing list