This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/81601] [7/8 Regression] incorrect Warray-bounds warning with -fsanitize
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 28 Jul 2017 14:21:58 +0000
- Subject: [Bug sanitizer/81601] [7/8 Regression] incorrect Warray-bounds warning with -fsanitize
- Auto-submitted: auto-generated
- References: <bug-81601-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81601
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The reason this doesn't trigger without -fsanitize= is that without the extra
UBSAN_* internal function calls we manage to find out earlier that this is a
dead code and optimize it away completely (during cddce1).