aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-05-11 10:20:44 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-05-11 08:20:44 +0000
commitcc56d170d24708b394ddce8e4dd3eeb45657842f (patch)
tree0f9a201735cb6b2a2e13cd556661f291d96387eb /gcc/lto-streamer.c
parenta2acdf1fb2c4b4c382865c038b18cff6a8ee2dc7 (diff)
downloadgcc-cc56d170d24708b394ddce8e4dd3eeb45657842f.zip
gcc-cc56d170d24708b394ddce8e4dd3eeb45657842f.tar.gz
gcc-cc56d170d24708b394ddce8e4dd3eeb45657842f.tar.bz2
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
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r--gcc/lto-streamer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index 0ae7c0c..153d2a7 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);
}