aboutsummaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-09-11 17:57:34 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-09-11 15:57:34 +0000
commit0a24446d38aa15bfafa68250066cbd858e3d7dfb (patch)
tree521dcabb59fa669cd29aed162f2e230534876651 /gcc/bb-reorder.c
parent1d30139d37ad8281957c875475c6a496b37ab015 (diff)
downloadgcc-0a24446d38aa15bfafa68250066cbd858e3d7dfb.zip
gcc-0a24446d38aa15bfafa68250066cbd858e3d7dfb.tar.gz
gcc-0a24446d38aa15bfafa68250066cbd858e3d7dfb.tar.bz2
bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block is OK.
* bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block is OK. From-SVN: r45542
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index c048ac8..96c3896 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -695,6 +695,10 @@ fixup_reorder_chain ()
if (RBI (bb)->next == e_fall->dest)
continue;
+ /* An fallthru to exit block. */
+ if (!RBI (bb)->next && e_fall->dest == EXIT_BLOCK_PTR)
+ continue;
+
/* We need a new jump insn. If the block has only one outgoing
edge, then we can stuff the new jump insn in directly. */
if (bb->succ->succ_next == NULL)