OSDN Git Service

Fix failure with pragma once where buffer is NULL and buffer_valid is true.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 02:10:19 +0000 (02:10 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Nov 2005 02:10:19 +0000 (02:10 +0000)
PR preprocessor/24202
* files.c (_cpp_pop_file_buffer): Set buffer_valid to false.

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

libcpp/ChangeLog
libcpp/files.c

index 422203c..3b14dab 100644 (file)
@@ -1,3 +1,8 @@
+2005-11-03  James E Wilson  <wilson@specifix.com>
+
+       PR preprocessor/24202
+       * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
+
 2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
 
        * include/cpplib.h (struct cpp_callbacks): Make error take
index 3951515..31c38d0 100644 (file)
@@ -1143,6 +1143,7 @@ _cpp_pop_file_buffer (cpp_reader *pfile, _cpp_file *file)
     {
       free ((void *) file->buffer);
       file->buffer = NULL;
+      file->buffer_valid = false;
     }
 }