[Bug sanitizer/85777] [7/8/9 Regression] -fsanitize=undefined makes a -Wmaybe-uninitialized warning disappear

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 10 13:49:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85777

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The expectations that sanitization doesn't change generated warnings is a wrong
one, the runtime instrumentation affects the code generation so much that
necessarily some further warnings will be emitted and others omitted.
If you care about warnings as well as sanitization, I'd suggest separate builds
for warnings and for sanitization, the latter perhaps with -w.


More information about the Gcc-bugs mailing list