bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block is OK.
authorJan Hubicka <jh@suse.cz>
Tue, 11 Sep 2001 15:57:34 +0000 (17:57 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 11 Sep 2001 15:57:34 +0000 (15:57 +0000)
* bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
is OK.

From-SVN: r45542

gcc/ChangeLog
gcc/bb-reorder.c

index 306bf2a34b937c9577f3ae96edabf3c9b74e110e..9468c7de5d58306433ee6d36e558ee0cc12ab4b5 100644 (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
index c048ac872ab01e803f0d1cc396ebb981d416d497..96c38965ff96beda4cb3e0aa1ba960d8f22e007d 100644 (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)