OSDN Git Service

* cfglayout.c (fixup_reorder_chain): Handle case where the
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jun 2004 11:58:40 +0000 (11:58 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Jun 2004 11:58:40 +0000 (11:58 +0000)
destination of E_TAKEN is EXIT_BLOCK_PTR.

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

gcc/ChangeLog
gcc/cfglayout.c

index 6c953a1..24b12e3 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-15  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * cfglayout.c (fixup_reorder_chain): Handle case where the
+       destination of E_TAKEN is EXIT_BLOCK_PTR.
+
 2004-06-15  Diego Novillo  <dnovillo@redhat.com>
 
        * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
index 6674268..ca3913f 100644 (file)
@@ -733,13 +733,15 @@ fixup_reorder_chain (void)
              /* Otherwise we can try to invert the jump.  This will
                 basically never fail, however, keep up the pretense.  */
              else if (invert_jump (bb_end_insn,
-                                   label_for_bb (e_fall->dest), 0))
+                                   (e_fall->dest == EXIT_BLOCK_PTR
+                                    ? NULL_RTX
+                                    : label_for_bb (e_fall->dest)), 0))
                {
+                 e_fall->flags &= ~EDGE_FALLTHRU;
 #ifdef ENABLE_CHECKING
                  if (!could_fall_through (e_taken->src, e_taken->dest))
                    abort ();
 #endif
-                 e_fall->flags &= ~EDGE_FALLTHRU;
                  e_taken->flags |= EDGE_FALLTHRU;
                  update_br_prob_note (bb);
                  continue;