mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 11:40:25 +08:00
line-map.c (linemap_enter_macro): Don't zero max_column_hint in every macro.
* 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
This commit is contained in:
parent
9287b16892
commit
d86d21192b
@ -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>
|
2012-06-04 Dodji Seketeli <dodji@redhat.com>
|
||||||
|
|
||||||
PR preprocessor/53463
|
PR preprocessor/53463
|
||||||
|
@ -331,7 +331,6 @@ linemap_enter_macro (struct line_maps *set, struct cpp_hashnode *macro_node,
|
|||||||
num_tokens * sizeof (source_location));
|
num_tokens * sizeof (source_location));
|
||||||
|
|
||||||
LINEMAPS_MACRO_CACHE (set) = LINEMAPS_MACRO_USED (set) - 1;
|
LINEMAPS_MACRO_CACHE (set) = LINEMAPS_MACRO_USED (set) - 1;
|
||||||
set->max_column_hint = 0;
|
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user