Re: [PATCH] Fix libcpp memory leak (PR middle-end/56461)

2013-03-06 Thread Tom Tromey
Jakub == Jakub Jelinek ja...@redhat.com writes: Jakub 2013-02-28 Jakub Jelinek ja...@redhat.com Jakub PR middle-end/56461 Jakub * internal.h (struct cpp_buffer): Add to_free field. Jakub (_cpp_pop_file_buffer): Add third argument. Jakub * files.c (_cpp_stack_file): Set buffer-to_free.

[PATCH] Fix libcpp memory leak (PR middle-end/56461)

2013-02-28 Thread Jakub Jelinek
Hi! On #include signal.h on Linux we leak memory in the preprocessor. The problem is that signal.h doesn't have standard multiple inclusion guards, the multiple inclusion guard is defined only conditionally and the whole header isn't protected by that guard, just big part of it. Furthermore,