diff mbox

PATCH to tree-streamer-in.c to fix bootstrap with --enable-gather-detailed-mem-stats

Message ID 4F68D754.2020500@redhat.com
State New
Headers show

Commit Message

Jason Merrill March 20, 2012, 7:15 p.m. UTC
The _stat allocation functions aren't supposed to be called directly.

Tested x86_64-pc-linux-gnu, applying as obvious.
diff mbox

Patch

commit f0e560b78591a50e39bf3ccf41bc3d87f43927e8
Author: Jason Merrill <jason@redhat.com>
Date:   Mon Mar 19 16:35:05 2012 -0400

    	* tree-streamer-in.c (streamer_alloc_tree): Call
    	ggc_alloc_zone_cleared_tree_node instead of
    	ggc_alloc_zone_cleared_tree_node_stat.

diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c
index 50ea77d..97c78cd 100644
--- a/gcc/tree-streamer-in.c
+++ b/gcc/tree-streamer-in.c
@@ -476,9 +476,9 @@  streamer_alloc_tree (struct lto_input_block *ib, struct data_in *data_in,
   else if (CODE_CONTAINS_STRUCT (code, TS_VECTOR))
     {
       HOST_WIDE_INT len = streamer_read_hwi (ib);
-      result = ggc_alloc_zone_cleared_tree_node_stat (&tree_zone,
-						      (len - 1) * sizeof (tree)
-						      + sizeof (struct tree_vector));
+      result = ggc_alloc_zone_cleared_tree_node ((len - 1) * sizeof (tree)
+						 + sizeof (struct tree_vector),
+						 &tree_zone);
       TREE_SET_CODE (result, VECTOR_CST);
     }
   else if (CODE_CONTAINS_STRUCT (code, TS_BINFO))