Skip to content

Commit 4ab5313

Browse files
kiranchandramohantru
authored andcommitted
[Driver] Restrict Ofast deprecation help message to Clang (llvm#101682)
The discussion about this in Flang (https://discourse.llvm.org/t/rfc-deprecate-ofast-in-flang/80243) has not concluded hence restricting the deprecation only to Clang. (cherry picked from commit e60ee1f)
1 parent dcaa1cd commit 4ab5313

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,9 @@ def O_flag : Flag<["-"], "O">, Visibility<[ClangOption, CC1Option, FC1Option]>,
932932
Alias<O>, AliasArgs<["1"]>;
933933
def Ofast : Joined<["-"], "Ofast">, Group<O_Group>,
934934
Visibility<[ClangOption, CC1Option, FlangOption]>,
935-
HelpText<"Deprecated; use '-O3 -ffast-math' for the same behavior,"
936-
" or '-O3' to enable only conforming optimizations">;
935+
HelpTextForVariants<[ClangOption, CC1Option],
936+
"Deprecated; use '-O3 -ffast-math' for the same behavior,"
937+
" or '-O3' to enable only conforming optimizations">;
937938
def P : Flag<["-"], "P">,
938939
Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>,
939940
Group<Preprocessor_Group>,

0 commit comments

Comments
 (0)