Commit 0a24446d by Jan Hubicka Committed by Jan Hubicka

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
parent 1d30139d
Tue Sep 11 17:55:54 CEST 2001 Jan Hubicka <jh@suse.cz>
* bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
is OK.
2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk> 2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.c (split_specs_attrs): Allow for empty attributes with * c-common.c (split_specs_attrs): Allow for empty attributes with
......
...@@ -695,6 +695,10 @@ fixup_reorder_chain () ...@@ -695,6 +695,10 @@ fixup_reorder_chain ()
if (RBI (bb)->next == e_fall->dest) if (RBI (bb)->next == e_fall->dest)
continue; 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 /* We need a new jump insn. If the block has only one outgoing
edge, then we can stuff the new jump insn in directly. */ edge, then we can stuff the new jump insn in directly. */
if (bb->succ->succ_next == NULL) if (bb->succ->succ_next == NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment