aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-08-20 22:25:57 +0200
committerJakub Jelinek <jakub@redhat.com>2024-08-20 22:33:13 +0200
commit447c32c5142a60278230f81ae6e50e41ef6d988e (patch)
treeb3d9a80aaf36b481d03ab966e28b8e68f946b0be /gcc
parent404d947d8ddd3c3035dcea115e9bab4c4a6bfa1c (diff)
downloadgcc-447c32c5142a60278230f81ae6e50e41ef6d988e.zip
gcc-447c32c5142a60278230f81ae6e50e41ef6d988e.tar.gz
gcc-447c32c5142a60278230f81ae6e50e41ef6d988e.tar.bz2
libcpp: Adjust lang_defaults
The table over the years turned to be very wide, 147 columns and any addition would add a couple of new ones. We need a 28x23 bit matrix right now. This patch changes the formatting, so that we need just 2 columns per new feature and so we have some room for expansion. In addition, the patch changes it to bitfields, which reduces .rodata by 532 bytes (so 5.75x reduction of the variable) and on x86_64-linux grows the cpp_set_lang function by 26 bytes (8.4% growth). 2024-08-20 Jakub Jelinek <jakub@redhat.com> * init.cc (struct lang_flags): Change all members from char typed fields to unsigned bit-fields. (lang_defaults): Change formatting of the initializer so that it fits to 68 columns rather than 147.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions