gcse.c (free_ldst_entry): Only free hashtable if it exists.
authorRichard Guenther <rguenther@suse.de>
Thu, 10 Nov 2005 12:44:19 +0000 (12:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Nov 2005 12:44:19 +0000 (12:44 +0000)
2005-11-10  Richard Guenther  <rguenther@suse.de>

* gcse.c (free_ldst_entry): Only free hashtable if
it exists.

From-SVN: r106734

gcc/ChangeLog
gcc/gcse.c

index ea2215066103c50b956f95b2a7271002e255992a..d2757133c645484fe493792f67e175d6d346e6d0 100644 (file)
@@ -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
index 2ac9ca24c5251a023611145c9f3ef08b083ff392..8b210f25677fe91680d5aaf12f1bf7c7d677e61b 100644 (file)
@@ -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)