From 6375779a599735d55828634076b8a20521ec5620 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Sat, 12 Nov 2005 19:29:30 +0000 Subject: [PATCH] gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table. 2005-11-12 Richard Guenther * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table. From-SVN: r106829 --- gcc/ChangeLog | 4 ++++ gcc/gcse.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c01cf7391ca..760a639074c7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-11-12 Richard Guenther + + * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table. + 2005-11-12 Jan Hubicka * expr.c (expand_expr_real_1): : Canonicalize diff --git a/gcc/gcse.c b/gcc/gcse.c index 8b210f25677f..2c74574b4493 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -5146,6 +5146,8 @@ find_rtx_in_ldst (rtx x) { struct ls_expr e; void **slot; + if (!pre_ldst_table) + return NULL; e.pattern = x; slot = htab_find_slot (pre_ldst_table, &e, NO_INSERT); if (!slot || ((struct ls_expr *)*slot)->invalid) -- 2.43.5