pgsql: Work around buggy alignas in older g++

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Work around buggy alignas in older g++
Date: 2026-01-25 10:34:19
Message-ID: E1vjxRi-002VSP-12@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/3119480.1769189606%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a9bdb63bba8a631cd4797393307eecf5fcde9167

Modified Files
--------------
src/include/c.h | 10 ++++++++++
1 file changed, 10 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2026-01-26 00:31:28 pgsql: Add more tests with clause STORAGE on table and TOAST interactio
Previous Message Michael Paquier 2026-01-25 10:02:43 pgsql: pg_stat_statements: Fix test instability with cache-clobbering b