From cf9757477e367cf9ab4e8dae6489dcd09178033e Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 11 Sep 2008 14:48:53 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/dce.c | 1 + gcc/ggc-common.c | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 054cabcbc5db..67d1649cf250 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-09-11 Jan Hubicka + + * ggc-common.c (loc_array): Make static. + * dce.c (rest_of_handle_ud_dce): Free worklist. + 2008-09-11 Jan Hubicka * cgraph.c (cgraph_release_function_body): Plug memory leak on diff --git a/gcc/dce.c b/gcc/dce.c index 31a5f51ac1c1..fc08751348c7 100644 --- a/gcc/dce.c +++ b/gcc/dce.c @@ -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. */ diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 8c0e459fe38f..747ec4cbdfcd 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -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) { -- 2.47.3