[clang] [clang-cl] Document behavior difference of strict aliasing in clang-cl vs clang. (PR #68460)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 9 10:53:47 PDT 2023
================
@@ -3152,7 +3152,8 @@ defm diagnostics_show_line_numbers : BoolFOption<"diagnostics-show-line-numbers"
def fno_stack_protector : Flag<["-"], "fno-stack-protector">, Group<f_Group>,
HelpText<"Disable the use of stack protectors">;
def fno_strict_aliasing : Flag<["-"], "fno-strict-aliasing">, Group<f_Group>,
- Flags<[NoXarchOption]>, Visibility<[ClangOption, CLOption, DXCOption]>;
+ Flags<[NoXarchOption]>, Visibility<[ClangOption, CLOption, DXCOption]>,
+ HelpText<"Disable optimizations based on strict aliasing rules (default)">;
----------------
zmodem wrote:
Since the defaultness depends on which driver mode is used (clang-cl or regular clang), we should probably leave out the `(default)` part.
https://github.com/llvm/llvm-project/pull/68460
More information about the cfe-commits
mailing list