* line-map.c (linemap_enter_macro): Don't zero max_column_hint in
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jun 2012 14:25:46 +0000 (14:25 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Jun 2012 14:25:46 +0000 (14:25 +0000)
  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
libcpp/line-map.c

index 1a5c146..fb4bac6 100644 (file)
@@ -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
index e6a344f..7c4e389 100644 (file)
@@ -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;
 }