summaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-05 14:25:46 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2012-06-05 14:25:46 +0000
commitc8dda42f9bdc5e8c18b918c851fde2d2cac6658c (patch)
treea130aa7e9cdc17392a6cb11075c5eba1c5e456a9 /libcpp
parentd26d40c84591df5a2a29a43e3b02e8ea94021040 (diff)
downloadgcc-c8dda42f9bdc5e8c18b918c851fde2d2cac6658c.tar.gz
* 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
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog6
-rw-r--r--libcpp/line-map.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 1a5c1462da1..fb4bac63f7b 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,9 @@
+2012-06-04 Dimitrios Apostolou <jimis@gmx.net>
+
+ * 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 <dodji@redhat.com>
PR preprocessor/53463
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index e6a344f0afa..7c4e389794d 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;
}