From 0a24446d38aa15bfafa68250066cbd858e3d7dfb Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 11 Sep 2001 17:57:34 +0200 Subject: [PATCH] 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/ChangeLog | 5 +++++ gcc/bb-reorder.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 306bf2a34b9..9468c7de5d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka + + * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block + is OK. + 2001-09-11 Joseph S. Myers * c-common.c (split_specs_attrs): Allow for empty attributes with 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) -- 2.30.2