From: Richard Guenther Date: Thu, 10 Nov 2005 12:44:19 +0000 (+0000) Subject: gcse.c (free_ldst_entry): Only free hashtable if it exists. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35b5442aff60c1c88fc336b670374c2ef54444be;p=gcc.git gcse.c (free_ldst_entry): Only free hashtable if it exists. 2005-11-10 Richard Guenther * gcse.c (free_ldst_entry): Only free hashtable if it exists. From-SVN: r106734 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea221506610..d2757133c64 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-10 Richard Guenther + + * gcse.c (free_ldst_entry): Only free hashtable if + it exists. + 2005-11-09 Eric Botcazou * function.c (assign_stack_local_1): Issue an error message if diff --git a/gcc/gcse.c b/gcc/gcse.c index 2ac9ca24c52..8b210f25677 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -5088,7 +5088,8 @@ free_ldst_entry (struct ls_expr * ptr) static void free_ldst_mems (void) { - htab_delete (pre_ldst_table); + if (pre_ldst_table) + htab_delete (pre_ldst_table); pre_ldst_table = NULL; while (pre_ldst_mems)