aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-10-08 17:45:02 +0000
committerJeff Law <law@gcc.gnu.org>1998-10-08 11:45:02 -0600
commit428a55dee27d6b49f285d383e1f8a5558af480e2 (patch)
tree0fb606d872ee78db6bbb624efc49140f95a60316
parentc2b7e122db71c5e8a4164800fb5f103548881bd1 (diff)
downloadgcc-428a55dee27d6b49f285d383e1f8a5558af480e2.zip
gcc-428a55dee27d6b49f285d383e1f8a5558af480e2.tar.gz
gcc-428a55dee27d6b49f285d383e1f8a5558af480e2.tar.bz2
* jump.c (jump_optimize): Revert accidental patch.
From-SVN: r22929
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/jump.c10
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ecd9e05..3de38fc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -5,6 +5,8 @@ Thu Oct 8 17:00:18 1998 Richard Henderson <rth@cygnus.com>
Thu Oct 8 17:15:04 1998 Jeffrey A Law (law@cygnus.com)
+ * jump.c (jump_optimize): Revert accidental patch.
+
* Makefile.in (cpplib.o): Use unlibsubdir.
Thu Oct 8 12:50:47 1998 Jim Wilson <wilson@cygnus.com>
diff --git a/gcc/jump.c b/gcc/jump.c
index 967981a..16928a9 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -480,9 +480,12 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
remove_death (dreg, trial);
break;
}
-
- /* Deleting insn could lose a death-note for SREG. */
- if ((trial = find_regno_note (insn, REG_DEAD, sreg)))
+#ifdef PRESERVE_DEATH_INFO_REGNO_P
+ /* Deleting insn could lose a death-note for SREG
+ so don't do it if final needs accurate
+ death-notes. */
+ if (PRESERVE_DEATH_INFO_REGNO_P (sreg)
+ && (trial = find_regno_note (insn, REG_DEAD, sreg)))
{
/* Change this into a USE so that we won't emit
code for it, but still can keep the note. */
@@ -494,6 +497,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
XEXP (trial, 1) = NULL_RTX;
}
else
+#endif
delete_insn (insn);
}
}