From c8dda42f9bdc5e8c18b918c851fde2d2cac6658c Mon Sep 17 00:00:00 2001 From: jason Date: Tue, 5 Jun 2012 14:25:46 +0000 Subject: [PATCH] * line-map.c (linemap_enter_macro): Don't zero max_column_hint in every macro. This improves performance by reducing the number of reallocations when track-macro-expansion is on. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@188242 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/ChangeLog | 6 ++++++ libcpp/line-map.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 1a5c146..fb4bac6 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2012-06-04 Dimitrios Apostolou + + * line-map.c (linemap_enter_macro): Don't zero max_column_hint in + every macro. This improves performance by reducing the number of + reallocations when track-macro-expansion is on. + 2012-06-04 Dodji Seketeli PR preprocessor/53463 diff --git a/libcpp/line-map.c b/libcpp/line-map.c index e6a344f..7c4e389 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -331,7 +331,6 @@ linemap_enter_macro (struct line_maps *set, struct cpp_hashnode *macro_node, num_tokens * sizeof (source_location)); LINEMAPS_MACRO_CACHE (set) = LINEMAPS_MACRO_USED (set) - 1; - set->max_column_hint = 0; return map; } -- 2.7.4