From 3c2359db029a93129df3a2cbfd7f1f18d2d84d2d Mon Sep 17 00:00:00 2001 From: wilson Date: Fri, 4 Nov 2005 02:10:19 +0000 Subject: 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 --- libcpp/ChangeLog | 5 +++++ libcpp/files.c | 1 + 2 files changed, 6 insertions(+) (limited to 'libcpp') 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 + + PR preprocessor/24202 + * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. + 2005-11-04 Joseph S. Myers * 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; } } -- cgit v1.2.1