Fix sigsegv in find_same_succ_bb
authorTom de Vries <tom@codesourcery.com>
Mon, 3 Jul 2017 07:20:49 +0000 (07:20 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Mon, 3 Jul 2017 07:20:49 +0000 (07:20 +0000)
commit0bbfd5540d15befe675f8bac6a5aa55df9064436
tree6b9e26dc612c92752cb02a9f4d674fe6ced5563f
parent37623e6ccce9722b4a780bfc24191fc4b0236d23
Fix sigsegv in find_same_succ_bb

2017-07-03  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/81192
* tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
BB_SAME_SUCC (bb) == NULL.

* gcc.dg/pr81192.c: New test.

From-SVN: r249893
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81192.c [new file with mode: 0644]
gcc/tree-ssa-tail-merge.c