From d0089985e7e6ec8fd020e40eb59667a88d0282de Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 18 Jul 2000 21:30:18 +0200 Subject: [PATCH] cpplex.c (cpp_scan_buffer): Output line command even at the stop buffer, provided it is not NULL. * cpplex.c (cpp_scan_buffer): Output line command even at the stop buffer, provided it is not NULL. From-SVN: r35123 --- gcc/ChangeLog | 8 ++++++-- gcc/cpplex.c | 5 ++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8cd839..6eb54bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-18 Jakub Jelinek + + * cpplex.c (cpp_scan_buffer): Output line command even at the stop + buffer, provided it is not NULL. + 2000-07-18 Alexandre Oliva * c-decl.c (duplicate_decls): Do not call make_var_volatile() in @@ -5,8 +10,7 @@ 2000-07-18 Jakub Jelinek - * calls.c (store_arg): Return non-zero if sibcall_failure is - desired. + * calls.c (store_arg): Return non-zero if sibcall_failure is desired. (expand_call): Adjust caller. 2000-07-17 Gabriel Dos Reis diff --git a/gcc/cpplex.c b/gcc/cpplex.c index a41e4ee..0d5ef46 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -454,10 +454,13 @@ cpp_scan_buffer (pfile, print) if (token->type == CPP_EOF) { cpp_pop_buffer (pfile); + + if (CPP_BUFFER (pfile)) + cpp_output_tokens (pfile, print, CPP_BUF_LINE (CPP_BUFFER (pfile))); + if (CPP_BUFFER (pfile) == stop) return; - cpp_output_tokens (pfile, print, CPP_BUF_LINE (CPP_BUFFER (pfile))); prev = 0; continue; } -- 2.7.4