diff options
author | Richard Biener <rguenther@suse.de> | 2022-01-18 12:17:19 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-01-18 14:33:01 +0100 |
commit | 4288b57affe34fbc60badf798eb0c19892e69980 (patch) | |
tree | 51b10f6e3c01ec773fd9fca53af918413e4e24b4 /libcpp/line-map.cc | |
parent | 0efc551e59f544ab25aeb527ccb2c8b82a03c108 (diff) | |
download | gcc-4288b57affe34fbc60badf798eb0c19892e69980.zip gcc-4288b57affe34fbc60badf798eb0c19892e69980.tar.gz gcc-4288b57affe34fbc60badf798eb0c19892e69980.tar.bz2 |
pack fields in line-map data structures
As pointed out by pahole.
2022-01-18 Richard Biener <rguenther@suse.de>
libcpp/
* include/line-map.h (class line_maps): Re-arrange fields
to minimize padding.
(class rich_location): Likewise.
* line-map.cc (rich_location::rich_location): Adjust.
Diffstat (limited to 'libcpp/line-map.cc')
-rw-r--r-- | libcpp/line-map.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcpp/line-map.cc b/libcpp/line-map.cc index b18cb67..62077c3 100644 --- a/libcpp/line-map.cc +++ b/libcpp/line-map.cc @@ -2083,11 +2083,11 @@ rich_location::rich_location (line_maps *set, location_t loc, m_ranges (), m_column_override (0), m_have_expanded_location (false), - m_fixit_hints (), m_seen_impossible_fixit (false), m_fixits_cannot_be_auto_applied (false), - m_path (NULL), - m_escape_on_output (false) + m_escape_on_output (false), + m_fixit_hints (), + m_path (NULL) { add_range (loc, SHOW_RANGE_WITH_CARET, label); } |