This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/78832] [7 Regression] -fcompare-debug failure (length) with -fsanitize=address
- 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: Sat, 17 Dec 2016 19:11:11 +0000
- Subject: [Bug sanitizer/78832] [7 Regression] -fcompare-debug failure (length) with -fsanitize=address
- Auto-submitted: auto-generated
- References: <bug-78832-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78832
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Dec 17 19:10:39 2016
New Revision: 243777
URL: https://gcc.gnu.org/viewcvs?rev=243777&root=gcc&view=rev
Log:
PR sanitizer/78832
* sanopt.c (sanitize_asan_mark_unpoison): Remove next variable, use
continue if gsi_next should be skipped.
(sanitize_asan_mark_poison): Remove prev variable, use continue if
gsi_prev should be skipped. When removing ASAN_MARK, do gsi_prev
first and gsi_remove on a previously made copy of the iterator.
* gcc.dg/asan/pr78832.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/asan/pr78832.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sanopt.c
trunk/gcc/testsuite/ChangeLog