]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ggc-common.c (loc_array): Make static.
authorJan Hubicka <jh@suse.cz>
Thu, 11 Sep 2008 12:48:53 +0000 (14:48 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 11 Sep 2008 12:48:53 +0000 (12:48 +0000)
* ggc-common.c (loc_array): Make static.
* dce.c (rest_of_handle_ud_dce): Free worklist.

From-SVN: r140286

gcc/ChangeLog
gcc/dce.c
gcc/ggc-common.c

index 054cabcbc5db95c10689150a8f9d736901abe048..67d1649cf25080f3a4f48568ef6e3cb14368f2f5 100644 (file)
@@ -1,3 +1,8 @@
+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
index 31a5f51ac1c188be43b6012fa77fe5764e7532ca..fc08751348c7b2c19296135edbe8de1454cb5376 100644 (file)
--- 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.  */
index 8c0e459fe38f133e343aa7d4c558b52f481b5d59..747ec4cbdfcd2eca662d6d9e08334f160e8b78ea 100644 (file)
@@ -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)
 {