From 04404a66beb70f1cc64d7d59f02ee0e72f215d94 Mon Sep 17 00:00:00 2001 From: hubicka Date: Tue, 11 Sep 2001 15:57:34 +0000 Subject: * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block is OK. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45542 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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 c048ac872ab..96c38965ff9 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.2.1