OSDN Git Service

* bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2001 15:57:34 +0000 (15:57 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2001 15:57:34 +0000 (15:57 +0000)
is OK.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45542 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/bb-reorder.c

index 306bf2a..9468c7d 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 c048ac8..96c3896 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)