aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc.h
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-02-23 17:46:32 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2009-02-23 16:46:32 +0000
commit9283b5133201311b5b62d7f139f3eaa279c2e87d (patch)
tree72a7867b925f6427a87f992d247de59324e52cd7 /gcc/ggc.h
parentea675ec341ff98ec6692bd563a6af5488f3cdd9d (diff)
downloadgcc-9283b5133201311b5b62d7f139f3eaa279c2e87d.zip
gcc-9283b5133201311b5b62d7f139f3eaa279c2e87d.tar.gz
gcc-9283b5133201311b5b62d7f139f3eaa279c2e87d.tar.bz2
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
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r--gcc/ggc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h
index 74c3639..5b2743b 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, \