Commit 18874af6 by Jan Hubicka Committed by Jan Hubicka

cselib.c (discard_useless_values): Clear out value pointer pointing to…

cselib.c (discard_useless_values): Clear out value pointer pointing to datastructure to be recycled.


	* cselib.c (discard_useless_values):  Clear out value pointer pointing
	to datastructure to be recycled.

From-SVN: r76666
parent 501f88de
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> 2004-01-25 Jan Hubicka <jh@suse.cz>
* genextract.c (main): Do not output the memset when not checking. * genextract.c (main): Do not output the memset when not checking.
......
...@@ -332,6 +332,7 @@ discard_useless_values (void **x, void *info ATTRIBUTE_UNUSED) ...@@ -332,6 +332,7 @@ discard_useless_values (void **x, void *info ATTRIBUTE_UNUSED)
if (v->locs == 0) if (v->locs == 0)
{ {
CSELIB_VAL_PTR (v->u.val_rtx) = NULL;
htab_clear_slot (hash_table, x); htab_clear_slot (hash_table, x);
unchain_one_value (v); unchain_one_value (v);
n_useless_values--; n_useless_values--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment