Commit c03d566f by Richard Earnshaw Committed by Richard Earnshaw

spew.c (space_for_token): Allocate zeroed memory for a new token chunk.

* spew.c (space_for_token): Allocate zeroed memory for a new token
chunk.

From-SVN: r55834
parent f63c45ec
2002-07-29 Richard Earnshaw <rearnsha@arm.com>
* spew.c (space_for_token): Allocate zeroed memory for a new token
chunk.
2002-07-27 Roger Sayle <roger@eyesopen.com> 2002-07-27 Roger Sayle <roger@eyesopen.com>
* decl.c (builtin_function_1): No need to explicitly mark * decl.c (builtin_function_1): No need to explicitly mark
......
...@@ -1023,7 +1023,7 @@ space_for_token (t) ...@@ -1023,7 +1023,7 @@ space_for_token (t)
if (t->last_pos != TOKEN_CHUNK_SIZE) if (t->last_pos != TOKEN_CHUNK_SIZE)
return t->last_chunk->toks + (t->last_pos++); 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 = t->last_chunk->next;
t->last_chunk->next = NULL; t->last_chunk->next = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment