Commit 3e2a0bd2 by Jan Hubicka Committed by Jan Hubicka

* cselib.c (remove_useless_values): Do not access discarded values.

From-SVN: r76478
parent b1adf557
2004-01-24 Jan Hubicka <jh@suse.cz>
* cselib.c (remove_useless_values): Do not access discarded values.
2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk> 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
* c-typeck.c (build_conditional_expr): Do not allow non-lvalue * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
......
...@@ -357,7 +357,6 @@ remove_useless_values (void) ...@@ -357,7 +357,6 @@ remove_useless_values (void)
while (values_became_useless); while (values_became_useless);
/* Second pass: actually remove the values. */ /* Second pass: actually remove the values. */
htab_traverse (hash_table, discard_useless_values, 0);
p = &first_containing_mem; p = &first_containing_mem;
for (v = *p; v != &dummy_val; v = v->next_containing_mem) for (v = *p; v != &dummy_val; v = v->next_containing_mem)
...@@ -368,6 +367,8 @@ remove_useless_values (void) ...@@ -368,6 +367,8 @@ remove_useless_values (void)
} }
*p = &dummy_val; *p = &dummy_val;
htab_traverse (hash_table, discard_useless_values, 0);
if (n_useless_values != 0) if (n_useless_values != 0)
abort (); abort ();
} }
......
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