Work around buggy alignas in older g++ master github/master
authorPeter Eisentraut <peter@eisentraut.org>
Sun, 25 Jan 2026 10:16:58 +0000 (11:16 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Sun, 25 Jan 2026 10:32:47 +0000 (11:32 +0100)
commita9bdb63bba8a631cd4797393307eecf5fcde9167
tree07488960d3584717859d7acfe1d4922a363a6859
parent72e3abd082c3ae6db4081137a7431fdd05e55d73
Work around buggy alignas in older g++

Older g++ (<9.3) mishandle the alignas specifier (raise warnings that
the alignment is too large), but the more or less equivalent attribute
works.  So as a workaround, #define alignas to that attribute for
those versions.

see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89357>

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/3119480.1769189606%40sss.pgh.pa.us
src/include/c.h