[clang] [clang] Add deprecation warning for `-Ofast` driver option (PR #98736)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 15 07:40:16 PDT 2024
================
@@ -931,7 +931,8 @@ 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, possibly with -ffast-math">;
----------------
AaronBallman wrote:
```suggestion
HelpText<"Deprecated; use '-O3', possibly with '-ffast-math'">;
```
https://github.com/llvm/llvm-project/pull/98736
More information about the cfe-commits
mailing list