[Bug sanitizer/84863] false-positive -Warray-bounds warning with -fsanitize-coverage=object-size
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Dec 15 03:30:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84863
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> Never use -Werror with -fsanitize=*, those really do cause new warnings
> because the code intentionally is less optimized and the runtime check
> themselves prevent further optimizations, so warnings that depend on
> optimizations can't work properly.
Maybe gcc should explicitly forbid the 2 of them being combined and error out
in the option-handling part of the driver instead.
More information about the Gcc-bugs
mailing list