re PR sanitizer/78832 (-fcompare-debug failure (length) with -fsanitize=address)
authorJakub Jelinek <jakub@redhat.com>
Sat, 17 Dec 2016 19:10:39 +0000 (20:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 17 Dec 2016 19:10:39 +0000 (20:10 +0100)
commit8ccaace8355c45a0b4602c2a666d4d5318fdc707
tree407a3a12d4ecccfc9625b2c66a274b6e86f30f6a
parent63ac625170fb144df1c58c0475a5ac8c60005ea1
re PR sanitizer/78832 (-fcompare-debug failure (length) with -fsanitize=address)

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.

From-SVN: r243777
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr78832.c [new file with mode: 0644]