From b93e1a8bf8ac513f1b856099932c2857ecc441f0 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Mon, 29 Jul 2002 10:37:25 +0000 Subject: [PATCH] * spew.c (space_for_token): Allocate zeroed memory for a new token chunk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55834 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/spew.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1415aed531e..60b6b9c70c5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-07-29 Richard Earnshaw + + * spew.c (space_for_token): Allocate zeroed memory for a new token + chunk. + 2002-07-27 Roger Sayle * decl.c (builtin_function_1): No need to explicitly mark diff --git a/gcc/cp/spew.c b/gcc/cp/spew.c index 2c34192db2f..27bc572b3da 100644 --- a/gcc/cp/spew.c +++ b/gcc/cp/spew.c @@ -1023,7 +1023,7 @@ space_for_token (t) if (t->last_pos != TOKEN_CHUNK_SIZE) return t->last_chunk->toks + (t->last_pos++); - t->last_chunk->next = ggc_alloc (sizeof (*t->last_chunk->next)); + t->last_chunk->next = ggc_alloc_cleared (sizeof (*t->last_chunk->next)); t->last_chunk = t->last_chunk->next; t->last_chunk->next = NULL; -- 2.11.4.GIT