For all ppc compilers, implement pg_atomic_fetch_add_ with inline asm.

Noah Misch <noah@leadboat.com>

Commit: e7ff59686eacf5021fb84be921116986c3828d8a
Author: Noah Misch <noah@leadboat.com>
Date: 2019-09-14T02:34:30Z
Releases: 13.0
For all ppc compilers, implement pg_atomic_fetch_add_ with inline asm.

This is more like how we handle s_lock.h and arch-x86.h.  This does not
materially affect code generation for gcc 7.2.0 or xlc 13.1.3.

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/20190831071157.GA3251746@rfd.leadboat.com

Files

PathChange+/−
configure modified +40 −0
configure.in modified +20 −0
src/include/pg_config.h.in modified +3 −0
src/include/port/atomics/arch-ppc.h modified +98 −0
src/include/port/atomics/generic-xlc.h modified +0 −66

Discussion