cppmacro.c (cpp_scan_buffer_nooutput): Only scan the current buffer.
authorNeil Booth <neilb@earthling.net>
Sun, 26 Nov 2000 19:30:27 +0000 (19:30 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 26 Nov 2000 19:30:27 +0000 (19:30 +0000)
        * cppmacro.c (cpp_scan_buffer_nooutput): Only scan the
        current buffer.

From-SVN: r37764

gcc/ChangeLog
gcc/cppmacro.c

index ed4fc2832c58b5ee15ed2d81ad025673ab79bda2..9e64dcd2146a03e300fa2df0fd9a2479b02de5af 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 4adf7f687cada63c99cac322e0f730da325ad73c..af520ef036e93572de41ebaaab5b46c881ef7e06 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.  */