cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target...
authorJakub Jelinek <jakub@redhat.com>
Sun, 30 Dec 2001 12:20:43 +0000 (13:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 30 Dec 2001 12:20:43 +0000 (13:20 +0100)
commit6ee3c8e4125518898c36b97105cb5f12d8ef3132
tree1ecc1d8c6b8f60bc987e818fb2e0bd8e1daa2e46
parent285f491adfed6a251de369208c5b00340e50a14f
cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target is EXIT_BLOCK_PTR, die otherwise.

* cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump
to fail if target is EXIT_BLOCK_PTR, die otherwise.
(redirect_edge_and_branch): Likewise.
* cfgcleanup.c (try_forward_edge): Don't force jump redirecting
if target is EXIT_BLOCK_PTR.

* gcc.c-torture/compile/20011229-2.c: New test.

From-SVN: r48399
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/cfgrtl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20011229-2.c [new file with mode: 0644]