re PR sanitizer/59306 (ICE with -fsanitize=null: gimple check: expected gimple_call...
authorMarek Polacek <polacek@redhat.com>
Wed, 27 Nov 2013 11:40:22 +0000 (11:40 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 27 Nov 2013 11:40:22 +0000 (11:40 +0000)
commit536da97c4eaa6ac7b8a65205dafd23c904395a39
tree6f3af14f8d15b876ebaea3378c9fae2c39dd2cda
parent0136f8f03a651185cb7a8a032f13b2cd0e6a7bdc
re PR sanitizer/59306 (ICE with -fsanitize=null: gimple check: expected gimple_call(error_mark), have gimple_assign(addr_expr) in gimple_call_arg)

PR sanitizer/59306
* ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
instead of walk_gimple_op.
(ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
testsuite/
* g++.dg/ubsan/pr59306.C: New test.

From-SVN: r205443
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr59306.C [new file with mode: 0644]
gcc/ubsan.c