]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
docs: update: document sanitizers can trigger warnings
authorMartin Liska <mliska@suse.cz>
Mon, 7 Nov 2022 08:54:09 +0000 (09:54 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 7 Nov 2022 08:54:09 +0000 (09:54 +0100)
gcc/ChangeLog:

* doc/invoke.texi: Improve wording.

Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com>
gcc/doc/invoke.texi

index 4a0fbca938ef2475fb4807b8e606f4715a306d04..94a2e20cfc111a293328010da9ea9486f8589721 100644 (file)
@@ -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.