diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-07-18 21:30:18 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-07-18 21:30:18 +0200 |
commit | d0089985e7e6ec8fd020e40eb59667a88d0282de (patch) | |
tree | 02e7dab8ad3b75f94109f7ddd2bdaed9c39d1cab /gcc/cpplex.c | |
parent | 611a0be7aeb3c38e7aa32144ac20cbcceb24c839 (diff) | |
download | gcc-d0089985e7e6ec8fd020e40eb59667a88d0282de.zip gcc-d0089985e7e6ec8fd020e40eb59667a88d0282de.tar.gz gcc-d0089985e7e6ec8fd020e40eb59667a88d0282de.tar.bz2 |
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
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |