pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use C11 alignas in pg_atomic_uint64 definitions
Date: Thu, 27 Nov 2025 06:58:55 +0000
Message-ID: <E1vOVxu-001cW9-25@gemulon.postgresql.org> (raw)

Use C11 alignas in pg_atomic_uint64 definitions

They were already using pg_attribute_aligned.  This replaces that with
alignas and moves that into the required syntactic position.  This
ends up making these three atomics implementations appear a bit more
consistent, but shouldn't change anything otherwise.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/46f05236-d4d4-4b4e-84d4-faa500f14691%40eisentraut.org

Branch
------
master

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

Modified Files
--------------
src/include/port/atomics/arch-ppc.h     | 2 +-
src/include/port/atomics/generic-gcc.h  | 3 +--
src/include/port/atomics/generic-msvc.h | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)



Message-ID: <E1vOVxu-001cW9-25@gemulon.postgresql.org>
Permalink:  ../E1vOVxu-001cW9-25@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vOVxu-001cW9-25@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use C11 alignas in pg_atomic_uint64 definitions
  In-Reply-To: <E1vOVxu-001cW9-25@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox