cfgcleanup.c (try_head_merge_bb): If get_condition returns NULL for a jump that is...
authorBernd Schmidt <bernds@codesourcery.com>
Tue, 13 Sep 2011 20:40:53 +0000 (20:40 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 13 Sep 2011 20:40:53 +0000 (20:40 +0000)
commit43052d458619645b576eff628bedcd02cdad2a2e
treed7f07a98f652d9df0af95a74a6a37c347bbe58d7
parenta5baf3b8ced93d9a633f3994bc649f0892f0d306
cfgcleanup.c (try_head_merge_bb): If get_condition returns NULL for a jump that is a cc0 insn...

* cfgcleanup.c (try_head_merge_bb): If get_condition returns
NULL for a jump that is a cc0 insn, pick the previous insn for
move_before.

* gcc.c-torture/compile/20110913-1.c: New test.

From-SVN: r178834
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20110913-1.c [new file with mode: 0644]