[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 00:48:56 PDT 2024


================
@@ -931,7 +931,9 @@ def O : Joined<["-"], "O">, Group<O_Group>,
 def O_flag : Flag<["-"], "O">, Visibility<[ClangOption, CC1Option, FC1Option]>,
   Alias<O>, AliasArgs<["1"]>;
 def Ofast : Joined<["-"], "Ofast">, Group<O_Group>,
-  Visibility<[ClangOption, CC1Option, FlangOption]>;
+  Visibility<[ClangOption, CC1Option, FlangOption]>,
+  HelpText<"Deprecated; use '-O3 -ffast math' for the same behavior,"
+  " or '-O3' to enable conforming optimizations only">;
----------------
Endilll wrote:

Applied, thank you

https://github.com/llvm/llvm-project/pull/98736


More information about the cfe-commits mailing list