diff options
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 8b8f56979ab..8029746bab1 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -511,6 +511,12 @@ cpp_create_reader (table, lang) /* Indicate date and time not yet calculated. */ pfile->date.type = CPP_EOF; + /* Create a token buffer for the lexer. */ + _cpp_init_tokenrun (&pfile->base_run, 250); + pfile->cur_run = &pfile->base_run; + pfile->cur_token = pfile->base_run.base; + pfile->state.bol = 1; + /* Initialise the base context. */ pfile->context = &pfile->base_context; pfile->base_context.macro = 0; |