From 0a24446d38aa15bfafa68250066cbd858e3d7dfb Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 11 Sep 2001 17:57:34 +0200 Subject: 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 --- gcc/bb-reorder.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/bb-reorder.c') 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) -- cgit v1.1