* flow.c (life_analysis): Fix test for deleted label.
authorRichard Henderson <rth@redhat.com>
Tue, 21 May 2002 22:35:04 +0000 (15:35 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 21 May 2002 22:35:04 +0000 (15:35 -0700)
From-SVN: r53705

gcc/ChangeLog
gcc/flow.c

index 4199d2cbc26584c32f76048f9cda8a7a7ff880e6..3bd9d20b481e6dcebb8d111adcf539fe2be7a3a9 100644 (file)
@@ -1,3 +1,7 @@
+2002-05-21  Richard Henderson  <rth@redhat.com>
+
+       * flow.c (life_analysis): Fix test for deleted label.
+
 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * doc/tm.texi: Fix typo.
index 64d68dffca7fb7d731b3d029f4b02362aa4921ae..c284273a4aeba62c9dd3b387c4b0e359813d7733 100644 (file)
@@ -493,12 +493,12 @@ life_analysis (f, file, flags)
     for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
       {
        rtx inote = find_reg_note (insn, REG_LABEL, NULL_RTX);
-
-       if (inote && GET_CODE (inote) == NOTE_INSN_DELETED_LABEL)
+       if (inote && GET_CODE (XEXP (inote, 0)) != CODE_LABEL)
          abort ();
       }
   }
 #endif
+
   /* Removing dead insns should've made jumptables really dead.  */
   delete_dead_jumptables ();
 }