mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 08:40:26 +08:00
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
This commit is contained in:
parent
95cd6f6f66
commit
5571f74f66
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user