public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PATCH to tree-streamer-in.c to fix bootstrap with --enable-gather-detailed-mem-stats
@ 2012-03-20 19:15 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2012-03-20 19:15 UTC (permalink / raw)
  To: gcc-patches List

[-- Attachment #1: Type: text/plain, Size: 120 bytes --]

The _stat allocation functions aren't supposed to be called directly.

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

[-- Attachment #2: streamer.patch --]
[-- Type: text/x-patch, Size: 1018 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-20 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20 19:15 PATCH to tree-streamer-in.c to fix bootstrap with --enable-gather-detailed-mem-stats Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).