diff options
author | Richard Guenther <rguenther@suse.de> | 2005-11-10 12:44:19 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2005-11-10 12:44:19 +0000 |
commit | 35b5442aff60c1c88fc336b670374c2ef54444be (patch) | |
tree | e5d9595cdfe31a638bfa1087375f1a3c9b7d2d3e /gcc | |
parent | a15024e630fe34f6ceb12151831664b028b26b09 (diff) | |
download | gcc-35b5442aff60c1c88fc336b670374c2ef54444be.zip gcc-35b5442aff60c1c88fc336b670374c2ef54444be.tar.gz gcc-35b5442aff60c1c88fc336b670374c2ef54444be.tar.bz2 |
gcse.c (free_ldst_entry): Only free hashtable if it exists.
2005-11-10 Richard Guenther <rguenther@suse.de>
* gcse.c (free_ldst_entry): Only free hashtable if
it exists.
From-SVN: r106734
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcse.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ea22150..d275713 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-10 Richard Guenther <rguenther@suse.de> + + * gcse.c (free_ldst_entry): Only free hashtable if + it exists. + 2005-11-09 Eric Botcazou <ebotcazou@adacore.com> * function.c (assign_stack_local_1): Issue an error message if @@ -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) |