From: Jan Hubicka Date: Mon, 23 Feb 2009 16:46:32 +0000 (+0100) Subject: re PR c/12245 (Uses lots of memory when compiling large initialized arrays) X-Git-Tag: releases/gcc-4.4.0~456 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9283b5133201311b5b62d7f139f3eaa279c2e87d;p=thirdparty%2Fgcc.git re PR c/12245 (Uses lots of memory when compiling large initialized arrays) PR c/12245 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when resizing. From-SVN: r144384 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01968baaf2aa..e63df9dad897 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-02-23 Jan Hubicka + + PR c/12245 + * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when resizing. + 2009-02-23 Jan Hubicka PR tree-optimization/37709 diff --git a/gcc/ggc.h b/gcc/ggc.h index 74c36394d1c1..5b2743b3386b 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -249,7 +249,7 @@ extern void dump_ggc_loc_statistics (bool); #define ggc_alloc_tree(LENGTH) ((tree) ggc_alloc_zone (LENGTH, &tree_zone)) #define htab_create_ggc(SIZE, HASH, EQ, DEL) \ - htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, NULL) + htab_create_alloc (SIZE, HASH, EQ, DEL, ggc_calloc, ggc_free) #define splay_tree_new_ggc(COMPARE) \ splay_tree_new_with_allocator (COMPARE, NULL, NULL, \