diff options
author | Per Bothner <bothner@pbothner.com> | 2003-08-21 15:57:51 +0000 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-08-21 08:57:51 -0700 |
commit | ac650a0a320c369bfc1788e9579dc102576ddc50 (patch) | |
tree | 7c7e63abe1ff8a2d9797fc58544a1e41ad0c12f2 /gcc/cppfiles.c | |
parent | 17fdfd9fc3a58d0fd9332b36c694508a1e076ae5 (diff) | |
download | gcc-ac650a0a320c369bfc1788e9579dc102576ddc50.zip gcc-ac650a0a320c369bfc1788e9579dc102576ddc50.tar.gz gcc-ac650a0a320c369bfc1788e9579dc102576ddc50.tar.bz2 |
cppfiles.c (stack_file): Correctly pass return_at_eof parameter to cpp_push_buffer.
* 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.
From-SVN: r70646
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 04f067d..a4edd5d 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. */ |