================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to