* jump.c (jump_optimize): Revert accidental patch.
authorJeffrey A Law <law@cygnus.com>
Thu, 8 Oct 1998 17:45:02 +0000 (17:45 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 8 Oct 1998 17:45:02 +0000 (11:45 -0600)
From-SVN: r22929

gcc/ChangeLog
gcc/jump.c

index ecd9e053b8488265299c3e5293b6ed48ad2910b3..3de38fce277dd133835369bcc768f761fedc7f90 100644 (file)
@@ -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>
index 967981aef44e4d1b57fd87e4b416ee70c33ca13f..16928a94e6fb344e595f3c5adbbcab9ac3b5f171 100644 (file)
@@ -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);
                      }
                  }