For ppc gcc, implement 64-bit compare_exchange and fetch_add with asm.
Noah Misch <noah@leadboat.com>
For ppc gcc, implement 64-bit compare_exchange and fetch_add with asm. While xlc defines __64BIT__, gcc does not. Due to this oversight in commit 30ee5d17c20dbb282a9952b3048d6ad52d56c371, gcc builds continued implementing 64-bit atomics by way of intrinsics. Back-patch to v13, where that commit first appeared. Reviewed by Tom Lane. Discussion: https://postgr.es/m/20201011051043.GA1724101@rfd.leadboat.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port/atomics/arch-ppc.h | modified | +2 −2 |
Discussion
- pgsql: For all ppc compilers, implement compare_exchange and fetch_add 8 messages · 2019-10-19 → 2020-10-12