Use C11 alignas in pg_atomic_uint64 definitions
authorPeter Eisentraut <[email protected]>
Thu, 27 Nov 2025 06:39:25 +0000 (07:39 +0100)
committerPeter Eisentraut <[email protected]>
Thu, 27 Nov 2025 06:53:34 +0000 (07:53 +0100)
commite7075a3405cc831128a71e83b2e39d464aa67fe8
treea1aaa46f172f5b36a63fcc2baf3ad3a5320a62ec
parent519fa0433b37701b357753a568080bee2c47d238
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 <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/46f05236-d4d4-4b4e-84d4-faa500f14691%40eisentraut.org
src/include/port/atomics/arch-ppc.h
src/include/port/atomics/generic-gcc.h
src/include/port/atomics/generic-msvc.h