summaryrefslogtreecommitdiff
path: root/gcc/cselib.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-26 20:38:54 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-26 20:38:54 +0000
commit663fb6892e9f03aa1e4a74494b85c22e55bfd13e (patch)
tree5ede9aaaa19ff75941ea6917071fc6a96a8a2e1e /gcc/cselib.c
parentc0fe9e543654e017c36f8caa57dd1bdb0474e5e8 (diff)
downloadgcc-663fb6892e9f03aa1e4a74494b85c22e55bfd13e.tar.gz
* cselib.c (discard_useless_values): Clear out value pointer pointing
to datastructure to be recycled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76666 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r--gcc/cselib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c
index d4ce925db5b..5c98b067f4d 100644
--- a/gcc/cselib.c
+++ b/gcc/cselib.c
@@ -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--;