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

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

From-SVN: r185586
This commit is contained in:
Jason Merrill 2012-03-20 15:14:16 -04:00 committed by Jason Merrill
parent 513d051988
commit f78f047346
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2012-03-20 Jason Merrill <jason@redhat.com>
* tree-streamer-in.c (streamer_alloc_tree): Call
ggc_alloc_zone_cleared_tree_node instead of
ggc_alloc_zone_cleared_tree_node_stat.
2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
* doc/extend.texi (Template Instantiation): Remove anachronisms.

View File

@ -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))