]> git.ipfire.org Git - thirdparty/gcc.git/commit
libcpp: Adjust lang_defaults
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Aug 2024 20:25:57 +0000 (22:25 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 20 Aug 2024 20:33:13 +0000 (22:33 +0200)
commit447c32c5142a60278230f81ae6e50e41ef6d988e
treeb3d9a80aaf36b481d03ab966e28b8e68f946b0be
parent404d947d8ddd3c3035dcea115e9bab4c4a6bfa1c
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.
libcpp/init.cc