OSDN Git Service

* cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Nov 2000 19:30:27 +0000 (19:30 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Nov 2000 19:30:27 +0000 (19:30 +0000)
        current buffer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37764 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cppmacro.c

index ed4fc28..9e64dcd 100644 (file)
@@ -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.
index 4adf7f6..af520ef 100644 (file)
@@ -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.  */