]> git.draconx.ca Git - cdecl99.git/commit
libcdecl: Avoid overalignment of string tables.
authorNick Bowler <nbowler@draconx.ca>
Fri, 23 Feb 2024 01:41:23 +0000 (20:41 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 23 Feb 2024 01:46:29 +0000 (20:46 -0500)
commit4c819e9466a0573afae0f9787a4704a479517624
treeb12065703d4fcdf6b5da7b6369e6e65b3abf1e73
parent9cb5aae31e1c126970843ef9b6e54036b185fd51
libcdecl: Avoid overalignment of string tables.

For whatever reason, on x86_64 gcc allocates any static array at least
32 bytes in size with 32 byte alignment.  In the case of things like
constant string tables, this ends up wasting a bunch of space for no
obvious reason.

Adding suitable _Alignas directives works to prevent overalignment.
common
configure.ac
src/error.c
src/gen-specstr.awk