aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-04-04 13:49:42 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-04-04 13:49:42 -0800
commit7c2aa9d72cc0a0d39c44206f86ffca8f9f2c66bd (patch)
tree21261d8c51a5a6b70ff465141ba41a153560c567
parent0705a2a26a8f761c0fa319adfae46e3cd0ade7be (diff)
downloadgcc-7c2aa9d72cc0a0d39c44206f86ffca8f9f2c66bd.zip
gcc-7c2aa9d72cc0a0d39c44206f86ffca8f9f2c66bd.tar.gz
gcc-7c2aa9d72cc0a0d39c44206f86ffca8f9f2c66bd.tar.bz2
* cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
From-SVN: r65249
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cse.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c15b2c2..923d437 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-04 Richard Henderson <rth@redhat.com>
+
+ * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
+
2003-04-04 Loren James Rittle <ljrittle@acm.org>
* fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
diff --git a/gcc/cse.c b/gcc/cse.c
index 94eb8d0..4109b58 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -3354,7 +3354,7 @@ fold_rtx (x, insn)
lets us fold switch statements on the VAX. */
{
rtx next;
- if (tablejump_p (insn, &next, NULL))
+ if (insn && tablejump_p (insn, &next, NULL))
return gen_rtx_LABEL_REF (Pmode, next);
}
break;