summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 15:46:59 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 15:46:59 +0000
commit88d0e264ccba305e3876738eb3a12ff7c4d827e2 (patch)
treef6ec56ef8fbfd4d601546bdb07c86e47c3fc9efc
parent1a9390057e0f73a16fd6518e60498aba1aff4410 (diff)
downloadppe42-gcc-88d0e264ccba305e3876738eb3a12ff7c4d827e2.tar.gz
ppe42-gcc-88d0e264ccba305e3876738eb3a12ff7c4d827e2.zip
* reorg.c (relax_delay_slots): Check that the jump is
conditional before trying to invert it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96027 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/reorg.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 986b1da9e1a..9c6b4483e04 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-07 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * reorg.c (relax_delay_slots): Check that the jump is
+ conditional before trying to invert it.
+
2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
* bb-reorder.c (max_entry_frequency, max_entry_frequency):
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 763f07b86cb..09c8ea583c5 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -3379,6 +3379,7 @@ relax_delay_slots (rtx first)
annulled jumps, though. Again, don't convert a jump to a RETURN
here. */
if (! INSN_ANNULLED_BRANCH_P (delay_insn)
+ && any_condjump_p (delay_insn)
&& next && JUMP_P (next)
&& (simplejump_p (next) || GET_CODE (PATTERN (next)) == RETURN)
&& next_active_insn (target_label) == next_active_insn (next)
OpenPOWER on IntegriCloud