diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9f0e5460861b08757176bef34033a550cd88a953..c0ca76544e8e3a9bd9904c49ee3accc0780c8397 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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.