Commit cf975747 by Jan Hubicka Committed by Jan Hubicka

ggc-common.c (loc_array): Make static.

	* ggc-common.c (loc_array): Make static.
	* dce.c (rest_of_handle_ud_dce): Free worklist.

From-SVN: r140286
parent 936fc9ba
2008-09-11 Jan Hubicka <jh@suse.cz>
* ggc-common.c (loc_array): Make static.
* dce.c (rest_of_handle_ud_dce): Free worklist.
2008-09-11 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_release_function_body): Plug memory leak on
ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
so we are sure we do not dangle it forever.
......
......@@ -424,6 +424,7 @@ rest_of_handle_ud_dce (void)
insn = VEC_pop (rtx, worklist);
mark_reg_dependencies (insn);
}
VEC_free (rtx, heap, worklist);
/* Before any insns are deleted, we must remove the chains since
they are not bidirectional. */
......
......@@ -947,7 +947,7 @@ cmp_statistic (const void *loc1, const void *loc2)
}
/* Collect array of the descriptors from hashtable. */
struct loc_descriptor **loc_array;
static struct loc_descriptor **loc_array;
static int
add_statistics (void **slot, void *b)
{
......
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