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)