diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 19:30:27 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-26 19:30:27 +0000 |
| commit | 3df18add9ea273c5d645eedb855e130f622efef0 (patch) | |
| tree | 8f6ceb7e2304cefece6afd29f16d8d9a337f8e9e | |
| parent | 7ace71865fde46c9b392897c4fd0cc4a59d1b2cd (diff) | |
| download | ppe42-gcc-3df18add9ea273c5d645eedb855e130f622efef0.tar.gz ppe42-gcc-3df18add9ea273c5d645eedb855e130f622efef0.zip | |
* cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
current buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37764 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cppmacro.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed4fc2832c5..9e64dcd2146 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-26 Neil Booth <neilb@earthling.net> + + * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the + current buffer. + 2000-11-26 Joseph S. Myers <jsm28@cam.ac.uk> * makefile.vms: Remove EGCS references. diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index 4adf7f687ca..af520ef036e 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -990,13 +990,14 @@ void cpp_scan_buffer_nooutput (pfile) cpp_reader *pfile; { + cpp_buffer *buffer = pfile->buffer->prev; cpp_token token; do do cpp_get_token (pfile, &token); while (token.type != CPP_EOF); - while (cpp_pop_buffer (pfile) != 0); + while (cpp_pop_buffer (pfile) != buffer); } /* Lookahead handling. */ |

