re PR middle-end/65984 (ICE: definition in block 4 does not dominate use in block...
authorJakub Jelinek <jakub@redhat.com>
Mon, 4 May 2015 19:52:33 +0000 (21:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 4 May 2015 19:52:33 +0000 (21:52 +0200)
commit100c8e9e9d896bbfd6d92b8ac7ab506d0090829b
tree84db2409acab690605ecd708b51fa26e9e7a8c22
parent2f4eb706df3bf10b82f571b0910df14317d1ff27
re PR middle-end/65984 (ICE: definition in block 4 does not dominate use in block 2 with -fnon-call-exceptions -fsanitize=enum)

PR tree-optimization/65984
* ubsan.c: Include tree-cfg.h.
(instrument_bool_enum_load): Use stmt_ends_bb_p instead of
stmt_could_throw_p test, rename can_throw variable to ends_bb.

* c-c++-common/ubsan/pr65984.c: New test.

From-SVN: r222775
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr65984.c [new file with mode: 0644]
gcc/ubsan.c