Commit 9283b513 by Jan Hubicka Committed by Jan Hubicka

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
parent ea675ec3
2009-02-23 Jan Hubicka <jh@suse.cz>
PR c/12245
* ggc.h (htab_create_ggc): Use ggc_free to free hashtable when resizing.
2009-02-23 Jan Hubicka <jh@suse.cz>
PR tree-optimization/37709
* tree.c (block_ultimate_origin): Move here from dwarf2out.
* tree.h (block_ultimate_origin): Declare.
......
......@@ -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, \
......
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