diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-30 12:20:43 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-30 12:20:43 +0000 |
commit | 8963581acd743a88191f9c5438989979c6aa53d2 (patch) | |
tree | 1ecc1d8c6b8f60bc987e818fb2e0bd8e1daa2e46 /gcc/cfgcleanup.c | |
parent | 532b8ba03905e26e370b548e0bb6d90ad4518766 (diff) | |
download | gcc-8963581acd743a88191f9c5438989979c6aa53d2.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48399 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 9933defe433..98030325f29 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -440,7 +440,8 @@ try_forward_edges (mode, b) int edge_probability = e->probability; int edge_frequency; - if (threaded) + /* Don't force if target is exit block. */ + if (threaded && target != EXIT_BLOCK_PTR) { notice_new_block (redirect_edge_and_branch_force (e, target)); if (rtl_dump_file) |