[clang] Honor pragmas with -ffp-contract=fast, depecate fast-honor-pragmas (PR #105746)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 22 16:06:03 PDT 2024
================
@@ -3178,6 +3178,13 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
StringRef Val = A->getValue();
if (Val == "fast" || Val == "on" || Val == "off" ||
Val == "fast-honor-pragmas") {
+ // fast-honor-pragmas is deprecated -- replace it with fast
+ if (Val == "fast-honor-pragmas") {
+ D.Diag(diag::warn_drv_deprecated_arg)
+ << A->getAsString(Args) << /*hasReplacement=*/true
+ << "-ffp-contract=fast";
+ Val = "fast";
+ }
----------------
rjmccall wrote:
I'm not sure that actually diagnosing this is a good idea. We have to support it forever; let's just silently consider an alias.
https://github.com/llvm/llvm-project/pull/105746
More information about the cfe-commits
mailing list