]> granicus.if.org Git - postgresql/commit
Replace xlc __fetch_and_add() with inline asm.
authorNoah Misch <noah@leadboat.com>
Sat, 14 Sep 2019 02:34:06 +0000 (19:34 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 14 Sep 2019 02:34:18 +0000 (19:34 -0700)
commit1c6b62a7d0e57bf9ac7a91d47484b1ea9f2857cd
tree2d46214be0e0b8f9b04e1022d6ec033dd76dc106
parent5b5b0f721d9cece8fb68ecdd1d53c3bffe6e753c
Replace xlc __fetch_and_add() with inline asm.

PostgreSQL has been unusable when built with xlc 13 and newer, which are
incompatible with our use of __fetch_and_add().  Back-patch to 9.5,
which introduced pg_atomic_fetch_add_u32().

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/20190831071157.GA3251746@rfd.leadboat.com
src/include/port/atomics/generic-xlc.h