re PR rtl-optimization/51495 (ICE: in force_nonfallthru_and_redirect, at cfgrtl.c...
authorJakub Jelinek <jakub@redhat.com>
Mon, 12 Dec 2011 21:00:36 +0000 (22:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 12 Dec 2011 21:00:36 +0000 (22:00 +0100)
commit6e456f4cf4deee3e2ccd9849286f59b90644c48b
tree7ed652648dc198102247414a0ec9f76f20b4e4d9
parentc88388e6745fb65bbc41c1e941c41f02ff27e4b7
re PR rtl-optimization/51495 (ICE: in force_nonfallthru_and_redirect, at cfgrtl.c:1171 with computed goto)

PR rtl-optimization/51495
* function.c (thread_prologue_and_epilogue_insns): Don't add
to bb_tail basic blocks that have EDGE_COMPLEX predecessor edges
from basic blocks not needing prologue.

* gcc.c-torture/compile/pr51495.c: New test.

From-SVN: r182265
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr51495.c [new file with mode: 0644]