aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-05-21 15:35:04 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-05-21 15:35:04 -0700
commit380e6adea2e15fdb2d68305ec3b44c176d27a1d2 (patch)
treeec65e0cb44d39ce18076c5d711b54aaa19358ddb
parent1f95326c132230ef3abfb64e16f19bdf20cbdd0b (diff)
downloadgcc-380e6adea2e15fdb2d68305ec3b44c176d27a1d2.zip
gcc-380e6adea2e15fdb2d68305ec3b44c176d27a1d2.tar.gz
gcc-380e6adea2e15fdb2d68305ec3b44c176d27a1d2.tar.bz2
* flow.c (life_analysis): Fix test for deleted label.
From-SVN: r53705
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/flow.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4199d2c..3bd9d20 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/flow.c b/gcc/flow.c
index 64d68df..c284273 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -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 ();
}