]> 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:19 +0000 (19:34 -0700)
commita1df9a015dac30d467a00f2d42510765d4f0dd5b
treea7f39c69523d176fae57cd01ad3aa2792e075bb3
parent8d32f82cbbbba5dd3da76edc298c04d3fd6041ae
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