mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 10:49:41 +08:00
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
This commit is contained in:
parent
f63c45ec8e
commit
c03d566f08
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
* decl.c (builtin_function_1): No need to explicitly mark
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user