diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2024-01-18 02:29:30 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2024-01-18 02:33:14 +0000 |
commit | 9a5e8f9d112adb0fdd0931f72a023cd77c09dd8c (patch) | |
tree | 2d07c3da12fc7fe2b132a7a70a4384b5cb90eeaf /gcc | |
parent | e935c0662fe6301d524c54bb5bd75e923abb61e9 (diff) | |
download | gcc-9a5e8f9d112adb0fdd0931f72a023cd77c09dd8c.zip gcc-9a5e8f9d112adb0fdd0931f72a023cd77c09dd8c.tar.gz gcc-9a5e8f9d112adb0fdd0931f72a023cd77c09dd8c.tar.bz2 |
Document negative forms of -Wtsan and -Wxor-used-as-pow [PR110847]
These warnings are enabled by default, thus the manual should document the
-no form instead of the positive form.
gcc/ChangeLog
PR middle-end/110847
* doc/invoke.texi (Option Summary): Document negative forms of
-Wtsan and -Wxor-used-as-pow.
(Warning Options): Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/invoke.texi | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index a537be6..4d43dda 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -410,7 +410,7 @@ Objective-C and Objective-C++ Dialects}. -Wswitch -Wno-switch-bool -Wswitch-default -Wswitch-enum -Wno-switch-outside-range -Wno-switch-unreachable -Wsync-nand -Wsystem-headers -Wtautological-compare -Wtrampolines -Wtrigraphs --Wtrivial-auto-var-init -Wtsan -Wtype-limits -Wundef +-Wtrivial-auto-var-init -Wno-tsan -Wtype-limits -Wundef -Wuninitialized -Wunknown-pragmas -Wunsuffixed-float-constants -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable @@ -424,7 +424,7 @@ Objective-C and Objective-C++ Dialects}. -Wvector-operation-performance -Wvla -Wvla-larger-than=@var{byte-size} -Wno-vla-larger-than -Wvolatile-register-var -Wwrite-strings --Wxor-used-as-pow +-Wno-xor-used-as-pow -Wzero-length-bounds} @item Static Analyzer Options @@ -9090,14 +9090,13 @@ This warning is enabled by default. @opindex Wtsan @opindex Wno-tsan -@item -Wtsan -Warn about unsupported features in ThreadSanitizer. +@item -Wno-tsan + +Disable warnings about unsupported features in ThreadSanitizer. ThreadSanitizer does not support @code{std::atomic_thread_fence} and can report false positives. -This warning is enabled by default. - @opindex Wtype-limits @opindex Wno-type-limits @item -Wtype-limits @@ -10434,17 +10433,18 @@ and/or writes to register variables. This warning is enabled by @opindex Wxor-used-as-pow @opindex Wno-xor-used-as-pow -@item -Wxor-used-as-pow @r{(C, C++, Objective-C and Objective-C++ only)} -Warn about uses of @code{^}, the exclusive or operator, where it appears -the user meant exponentiation. Specifically, the warning occurs when the +@item -Wno-xor-used-as-pow @r{(C, C++, Objective-C and Objective-C++ only)} +Disable warnings about uses of @code{^}, the exclusive or operator, +where it appears the code meant exponentiation. +Specifically, the warning occurs when the left-hand side is the decimal constant 2 or 10 and the right-hand side is also a decimal constant. In C and C++, @code{^} means exclusive or, whereas in some other languages (e.g. TeX and some versions of BASIC) it means exponentiation. -This warning is enabled by default. It can be silenced by converting one -of the operands to hexadecimal. +This warning can be silenced by converting one of the operands to +hexadecimal as well as by compiling with @option{-Wno-xor-used-as-pow}. @opindex Wdisabled-optimization @opindex Wno-disabled-optimization |