diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-04 02:10:19 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-04 02:10:19 +0000 |
commit | 3c2359db029a93129df3a2cbfd7f1f18d2d84d2d (patch) | |
tree | 097d4894730f04d5fb11c4ce8c76f1c9a075b279 /libcpp | |
parent | 2fc907bd508a3c369a2a575691442c8a684afb4d (diff) | |
download | gcc-3c2359db029a93129df3a2cbfd7f1f18d2d84d2d.tar.gz |
Fix failure with pragma once where buffer is NULL and buffer_valid is true.
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
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/files.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 422203c64a1..3b14dabf134 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -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 diff --git a/libcpp/files.c b/libcpp/files.c index 3951515da39..31c38d0bb80 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -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; } } |