]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
Reorg line_map data structures for better packing.
authorNathan Sidwell <nathan@acm.org>
Tue, 3 Jul 2018 14:47:11 +0000 (14:47 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 3 Jul 2018 14:47:11 +0000 (14:47 +0000)
commit42a98b43bbd3faf452545871daa49d155dfd03e2
tree4fd357077b47dfab63779852ccc2674c47b4d94c
parent42addb5adfbe872a7dd086db04df3f517a61f1e8
Reorg line_map data structures for better packing.

* include/line-map.h (enum lc_reason): Add LC_HWM.
(LINE_MAP_MAX_LOCATION): Define here.
(struct line_map): Move reason field to line_map_ordinary.  Adjust
GTY tagging.
(struct line_map_ordinary): Reorder fields for less padding.
(struct line_map_macro): Likewise.
(MAP_ORDINARY_P): New.
(linemap_check_ordinary, linemap_check_macro): Adjust.
* line-map.c (LINE_MAP_MAX_SOURCE_LOCATION): Delete.
(new_linemap): Take start_location, not reason.  Adjust.
(linemap_add, linemap_enter_macro): Adjust.
(linemap_line_start): Likewise.
(linemap_macro_expansion_map_p): Use MAP_ORDINARY_P.
(linemap_macro_loc_to_spelling_point): Likewise.
(linemap_macro_loc_to_def_point): Likewise.
(linemap_dump): Likewise.

From-SVN: r262348
libcpp/ChangeLog
libcpp/include/line-map.h
libcpp/line-map.c