diff options
author | James E Wilson <wilson@specifixinc.com> | 2005-11-03 18:10:19 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-11-03 18:10:19 -0800 |
commit | 5571f74f66e462873f442db894ab278c0f6aa563 (patch) | |
tree | 097d4894730f04d5fb11c4ce8c76f1c9a075b279 /libcpp | |
parent | 95cd6f6f66b75aebb3d479840a6949e3fbc09e46 (diff) | |
download | gcc-5571f74f66e462873f442db894ab278c0f6aa563.zip gcc-5571f74f66e462873f442db894ab278c0f6aa563.tar.gz gcc-5571f74f66e462873f442db894ab278c0f6aa563.tar.bz2 |
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.
From-SVN: r106472
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 422203c..3b14dab 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 3951515..31c38d0 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; } } |