Use C11 alignas in pg_atomic_uint64 definitions
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2025-11-27T06:53:34Z
Releases:
19 (unreleased)
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
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/atomics/arch-ppc.h | modified | +1 −1 |
| src/include/port/atomics/generic-gcc.h | modified | +1 −2 |
| src/include/port/atomics/generic-msvc.h | modified | +2 −2 |
Discussion
- alignas (C11) 17 messages · 2025-11-12 → 2026-01-29