]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR middle-end/56461
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2013 16:18:40 +0000 (16:18 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Mar 2013 16:18:40 +0000 (16:18 +0000)
commit914db4b784e45909e13d0c229baf49234e4310bb
tree81d6fae2161fe976ca587b7a58d10fda41f7e93b
parent3687a208b7bfca87fc95ab9e26fa63d0edf474b5
PR middle-end/56461
* internal.h (struct cpp_buffer): Add to_free field.
(_cpp_pop_file_buffer): Add third argument.
* files.c (_cpp_stack_file): Set buffer->to_free.
(_cpp_pop_file_buffer): Add to_free argument.  Free to_free
if non-NULL, and if equal to file->buffer_start, also clear
file->buffer{,_start,_valid}.
* directives.c (_cpp_pop_buffer): Pass buffer->to_free
to _cpp_pop_file_buffer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196497 138bc75d-0d04-0410-961f-82ee72b054a4
libcpp/ChangeLog
libcpp/directives.c
libcpp/files.c
libcpp/internal.h