re PR middle-end/56461 (GCC is leaking lots of memory)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Mar 2013 16:18:40 +0000 (17:18 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Mar 2013 16:18:40 +0000 (17:18 +0100)
commit28937f1196166ef33c303ff09f0d7f4936faec81
tree81d6fae2161fe976ca587b7a58d10fda41f7e93b
parentb681bb9507df9bf700eac671e3c999bd735b1939
re PR middle-end/56461 (GCC is leaking lots of memory)

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.

From-SVN: r196497
libcpp/ChangeLog
libcpp/directives.c
libcpp/files.c
libcpp/internal.h