aboutsummaryrefslogtreecommitdiff
path: root/gas/frags.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-04-21 16:10:44 -0600
committerTom Tromey <tom@tromey.com>2021-04-21 16:57:31 -0600
commit7e7a35fbca94c5bfe45781067c75671ba508a0c8 (patch)
tree2df6aaa394da1f326582028063cbffeb10ca189a /gas/frags.h
parent6d5702a5eb313c8c3195edc21eebf6ef312a3fcc (diff)
downloadgdb-7e7a35fbca94c5bfe45781067c75671ba508a0c8.zip
gdb-7e7a35fbca94c5bfe45781067c75671ba508a0c8.tar.gz
gdb-7e7a35fbca94c5bfe45781067c75671ba508a0c8.tar.bz2
Shrink size of dwarf2_per_cu_data
I noticed some holes in struct dwarf2_per_cu_data. This patch rearranges the type slightly, and shrinks the size of some fields. This reduces it from 136 bytes to 112 bytes (on x86-64). I also reduced the size of the DWARF "version" fields in a couple of spots. It seemed needless to use a short to hold a value that ranges from 2 to 5, and this also helped the goal of shrinking dwarf2_per_cu_data. 2021-04-21 Tom Tromey <tom@tromey.com> * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now unsigned char. (struct dwarf2_per_cu_data): Rearrange. * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now unsigned char. (struct comp_unit_head): Rearrange. * dwarf2/comp-unit.c (read_comp_unit_head): Update.
Diffstat (limited to 'gas/frags.h')
0 files changed, 0 insertions, 0 deletions