For all ppc compilers, implement compare_exchange and fetch_add with asm

Enterprise / PostgreSQL - Noah Misch [leadboat.com] - 19 October 2019 03:20 EDT

This is more like how we handle s_lock.h and arch-x86.h.

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/20191005173400.GA3979129@rfd.leadboat.com

30ee5d17c2 For all ppc compilers, implement compare_exchange and fetch_add with asm.
configure | 40 ++++++
configure.in | 20 +++
src/include/pg_config.h.in | 3 +
src/include/port/atomics.h | 11 +-
src/include/port/atomics/arch-ppc.h | 231 +++++++++++++++++++++++++++++++++
src/include/port/atomics/generic-xlc.h | 142 --------------------
src/tools/pginclude/cpluspluscheck | 1 -
src/tools/pginclude/headerscheck | 1 -
8 files changed, 298 insertions(+), 151 deletions(-)

Upstream: git.postgresql.org


  • Share