From: Jan Hubicka Date: Tue, 11 May 2010 08:20:44 +0000 (+0200) Subject: lto-streamer.c (lto_streamer_cache_add_to_node_array, [...]): Put nodes into heap. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc56d170d24708b394ddce8e4dd3eeb45657842f;p=gcc.git lto-streamer.c (lto_streamer_cache_add_to_node_array, [...]): Put nodes into heap. * lto-streamer.c (lto_streamer_cache_add_to_node_array, lto_streamer_cache_delete): Put nodes into heap. (struct lto_streamer_cache_d): Nodes vector is in heap. From-SVN: r159261 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0e02b6c127c..86c8e674383 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2010-05-11 Jan Hubicka + + * lto-streamer.c (lto_streamer_cache_add_to_node_array, + lto_streamer_cache_delete): Put nodes into heap. + (struct lto_streamer_cache_d): Nodes vector is in heap. + 2010-05-11 Jan Hubicka * cgraphbuild.c (cgraph_rebuild_references): New. diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c index 0ae7c0c6196..153d2a78608 100644 --- a/gcc/lto-streamer.c +++ b/gcc/lto-streamer.c @@ -458,7 +458,7 @@ lto_streamer_cache_add_to_node_array (struct lto_streamer_cache_d *cache, if (ix >= (int) VEC_length (tree, cache->nodes)) { size_t sz = ix + (20 + ix) / 4; - VEC_safe_grow_cleared (tree, gc, cache->nodes, sz); + VEC_safe_grow_cleared (tree, heap, cache->nodes, sz); VEC_safe_grow_cleared (unsigned, heap, cache->offsets, sz); } @@ -790,7 +790,7 @@ lto_streamer_cache_delete (struct lto_streamer_cache_d *c) htab_delete (c->node_map); free_alloc_pool (c->node_map_entries); - VEC_free (tree, gc, c->nodes); + VEC_free (tree, heap, c->nodes); VEC_free (unsigned, heap, c->offsets); free (c); }