diff options
author | Martin Liska <mliska@suse.cz> | 2022-11-07 09:54:09 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2022-11-07 09:54:09 +0100 |
commit | a8fb90eb3949bfb101bd6f50f24a029e10119591 (patch) | |
tree | adaa37521d1abe056bbd6b4219f7d9f2f1ba1c62 /gcc | |
parent | 33dc1bacc3d4f13bf4f5bc321780452591c32861 (diff) | |
download | gcc-a8fb90eb3949bfb101bd6f50f24a029e10119591.zip gcc-a8fb90eb3949bfb101bd6f50f24a029e10119591.tar.gz gcc-a8fb90eb3949bfb101bd6f50f24a029e10119591.tar.bz2 |
docs: update: document sanitizers can trigger warnings
gcc/ChangeLog:
* doc/invoke.texi: Improve wording.
Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/doc/invoke.texi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4a0fbca..94a2e20 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -16502,9 +16502,10 @@ by this option. @end table -Note the enabled sanitizer options tend to increase a false-positive rate -of selected warnings, most notably @option{-Wmaybe-uninitialized}. -And thus we recommend to disable @option{-Werror}. +Note that sanitizers tend to increase the rate of false positive +warnings, most notably those around @option{-Wmaybe-uninitialized}. +We recommend against combining @option{-Werror} and [the use of] +sanitizers. While @option{-ftrapv} causes traps for signed overflows to be emitted, @option{-fsanitize=undefined} gives a diagnostic message. |