re PR sanitizer/64170 (ICE compiling Linux Kernel drivers/media/rc/imon.c in imon_inc...
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 Dec 2014 23:00:09 +0000 (00:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 5 Dec 2014 23:00:09 +0000 (00:00 +0100)
commit06dd2aceb1855a33008066e285db77e28bbffa16
treea6aec67162141abb0a0ec3158b81ddd7c15b82fe
parent40da08e0dd91017678b20cb1db2cb529f64d33df
re PR sanitizer/64170 (ICE compiling Linux Kernel drivers/media/rc/imon.c in imon_incoming_packet)

PR sanitizer/64170
* sanopt.c (maybe_optimize_asan_check_ifn): If base_checks is
non-NULL, call maybe_get_dominating_check on it even if g is
non-NULL.

* gcc.dg/asan/pr64170.c: New test.

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