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/files.c | |
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/files.c')
-rw-r--r-- | libcpp/files.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |