aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-11-12 19:29:30 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-11-12 19:29:30 +0000
commit6375779a599735d55828634076b8a20521ec5620 (patch)
treeb55ba92249bef2aca57bc2f67b618f3b41368238 /gcc/gcse.c
parent02c92593ed3d6da29ba15a4f9945b7c3885e2700 (diff)
downloadgcc-6375779a599735d55828634076b8a20521ec5620.zip
gcc-6375779a599735d55828634076b8a20521ec5620.tar.gz
gcc-6375779a599735d55828634076b8a20521ec5620.tar.bz2
gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
2005-11-12 Richard Guenther <rguenther@suse.de> * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table. From-SVN: r106829
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 8b210f2..2c74574 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)