From 108ed0fbfc597f8548880f11ed8c0d5c46ed7557 Mon Sep 17 00:00:00 2001 From: bothner Date: Thu, 21 Aug 2003 15:57:51 +0000 Subject: * cppfiles.c (stack_file): Correctly pass return_at_eof parameter to cpp_push_buffer. * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled by return_at_eof check. Always call _cpp_pop_buffer at end. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70646 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppfiles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cppfiles.c') diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 04f067da9d1..a4edd5da33b 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -615,7 +615,8 @@ stack_file (cpp_reader *pfile, _cpp_file *file, bool import) /* Stack the buffer. */ buffer = cpp_push_buffer (pfile, file->buffer, file->st.st_size, - CPP_OPTION (pfile, preprocessed), 0); + CPP_OPTION (pfile, preprocessed), + ! pfile->buffer); buffer->file = file; /* Initialize controlling macro state. */ -- cgit v1.2.3