OSDN Git Service

* bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 11:16:46 +0000 (11:16 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 11:16:46 +0000 (11:16 +0000)
on jumps.

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

gcc/ChangeLog
gcc/bb-reorder.c

index 94e20b3..e684f7a 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
+       on jumps.
+
 2009-08-17  DJ Delorie  <dj@redhat.com>
 
        * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
index d1a36c1..35b4f17 100644 (file)
@@ -1420,7 +1420,7 @@ fix_up_fall_thru_edges (void)
 
                      fall_thru_label = block_label (fall_thru->dest);
 
-                     if (old_jump && fall_thru_label)
+                     if (old_jump && JUMP_P (old_jump) && fall_thru_label)
                        invert_worked = invert_jump (old_jump,
                                                     fall_thru_label,0);
                      if (invert_worked)