docs: document sanitizers can trigger warnings

PR sanitizer/107298

gcc/ChangeLog:

	* doc/invoke.texi: Document sanitizers can trigger warnings.
This commit is contained in:
Martin Liska 2022-10-26 13:07:57 +02:00
parent bd891730b2
commit 3f9c071324

View file

@ -16509,6 +16509,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}.
While @option{-ftrapv} causes traps for signed overflows to be emitted,
@option{-fsanitize=undefined} gives a diagnostic message.
This currently works only for the C family of languages.