]> gcc.gnu.org Git - gcc.git/commitdiff
lto-streamer.c (lto_streamer_cache_add_to_node_array, [...]): Put nodes into heap.
authorJan Hubicka <jh@suse.cz>
Tue, 11 May 2010 08:20:44 +0000 (10:20 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 11 May 2010 08:20:44 +0000 (08:20 +0000)
* 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

gcc/ChangeLog
gcc/lto-streamer.c

index 0e02b6c127cd78834846100f65257b5faf271630..86c8e674383b06841c1dfc4ff25db4d307ab4538 100644 (file)
@@ -1,3 +1,9 @@
+2010-05-11  Jan Hubicka  <jh@suse.cz>
+
+       * 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  <jh@suse.cz>
 
        * cgraphbuild.c (cgraph_rebuild_references): New.
index 0ae7c0c619637ea500d4a77e176a1e7b5661dd16..153d2a786083757ade8e4fce3b236ca7033407a8 100644 (file)
@@ -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);
 }
This page took 0.074511 seconds and 5 git commands to generate.