line-map.c (linemap_enter_macro): Don't zero max_column_hint in every macro.
authorDimitrios Apostolou <jimis@gmx.net>
Tue, 5 Jun 2012 14:25:46 +0000 (14:25 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 5 Jun 2012 14:25:46 +0000 (10:25 -0400)
  * 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.

From-SVN: r188242

libcpp/ChangeLog
libcpp/line-map.c

index 1a5c1462da13dd21f66b5e2e9ae5aa94ba6cd7f9..fb4bac63f7bfb6b9fc83c9acf605381ff0c58458 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 e6a344f0afab4a5314545190ddb998931e93ec02..7c4e389794d087df6a29c545ccf0d830dab3c8b0 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;
 }