Re: alignas (C11)

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2026-01-23T22:20:20Z
Lists: pgsql-hackers
I wrote:
> Hmm, yeah, their bug #70066 shows clearly that the __attribute__
> spelling should work.

Sorry, copy-and-paste-o; it's

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

that has the full statement of the problem and ACK of the fix.

			regards, tom lane



Commits

  1. Further fix extended alignment for older g++.

  2. Disable extended alignment uses on older g++

  3. Work around buggy alignas in older g++

  4. Use C11 alignas in pg_atomic_uint64 definitions

  5. C11 alignas instead of unions -- extended alignments

  6. C11 alignas instead of unions

  7. Add <stdalign.h> to c.h