re PR rtl-optimization/47157 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
authorJakub Jelinek <jakub@redhat.com>
Mon, 3 Jan 2011 20:59:20 +0000 (21:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 3 Jan 2011 20:59:20 +0000 (21:59 +0100)
commit9766135bb18d75cd0d5257d21de485e953e3505e
treea5d208c43ab55221a90b175688171ca074b3ad73
parentd652f226fca1e942b7851d1205f8a6a472d9e0a0
re PR rtl-optimization/47157 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)

PR rtl-optimization/47157
* combine.c (try_combine): If undobuf.other_insn becomes
(set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
and set *new_direct_jump_p too.

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

From-SVN: r168439
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr47157.c [new file with mode: 0644]