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
This commit is contained in:
Jan Hubicka 2001-09-11 17:57:34 +02:00 committed by Jan Hubicka
parent 1d30139d37
commit 0a24446d38
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* c-common.c (split_specs_attrs): Allow for empty attributes with

View File

@ -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)