diff options
| author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-17 09:59:52 +0000 |
|---|---|---|
| committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-17 09:59:52 +0000 |
| commit | e77b8253aa187580c9e185461ed28c207e693126 (patch) | |
| tree | e11866266cf98c8e56a5c72d6c5ab06707407dc8 /libcpp/ChangeLog | |
| parent | 62db153a9b1799e87fcc12393c34a4c9a1fa0ef5 (diff) | |
| download | ppe42-gcc-e77b8253aa187580c9e185461ed28c207e693126.tar.gz ppe42-gcc-e77b8253aa187580c9e185461ed28c207e693126.zip | |
Add line map statistics to -fmem-report output
This patch adds statistics about line maps' memory consumption and
macro expansion to the output of -fmem-report. It has been useful in
trying to reduce the memory consumption of the macro maps support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180085 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/ChangeLog')
| -rw-r--r-- | libcpp/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index bd86466f256..fad0da65853 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,6 +1,18 @@ 2011-10-15 Tom Tromey <tromey@redhat.com> Dodji Seketeli <dodji@redhat.com> + * line-map.h (struct linemap_stats): Declare new struct. + (linemap_get_statistics): Declare ... + * line-map.c (linemap_get_statistics): ... new function. + * macro.c (num_expanded_macros_counter, num_macro_tokens_counter): + Declare new counters. + (enter_macro_context, replace_args): Update + num_macro_tokens_counter. + (cpp_get_token_1): Update num_expanded_macros_counter. + +2011-10-15 Tom Tromey <tromey@redhat.com> + Dodji Seketeli <dodji@redhat.com> + * include/cpplib.h (struct cpp_options)<debug>: New struct member. * include/line-map.h (linemap_dump_location): Declare ... * line-map.c (linemap_dump_location): ... new function. |

