OSDN Git Service

* cselib.c (discard_useless_values): Clear out value pointer pointing
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2004 20:38:54 +0000 (20:38 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2004 20:38:54 +0000 (20:38 +0000)
to datastructure to be recycled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76666 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cselib.c

index ea4c6d3..a66fb08 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-26  Jan Hubicka  <jh@suse.cz>
+
+       * cselib.c (discard_useless_values):  Clear out value pointer pointing
+       to datastructure to be recycled.
+
 2004-01-25  Jan Hubicka  <jh@suse.cz>
 
        * genextract.c (main): Do not output the memset when not checking.
index d4ce925..5c98b06 100644 (file)
@@ -332,6 +332,7 @@ discard_useless_values (void **x, void *info ATTRIBUTE_UNUSED)
 
   if (v->locs == 0)
     {
+      CSELIB_VAL_PTR (v->u.val_rtx) = NULL;
       htab_clear_slot (hash_table, x);
       unchain_one_value (v);
       n_useless_values--;