pgsql: For all ppc compilers, implement pg_atomic_fetch_add_ with inlin

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: For all ppc compilers, implement pg_atomic_fetch_add_ with inlin
Date: 2019-09-14 02:41:39
Message-ID: E1i8y0J-00076V-LN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e7ff59686eacf5021fb84be921116986c3828d8a

Modified Files
--------------
configure | 40 ++++++++++++++
configure.in | 20 +++++++
src/include/pg_config.h.in | 3 ++
src/include/port/atomics/arch-ppc.h | 98 ++++++++++++++++++++++++++++++++++
src/include/port/atomics/generic-xlc.h | 66 -----------------------
5 files changed, 161 insertions(+), 66 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-09-14 14:10:47 Re: pgsql: For all ppc compilers, implement pg_atomic_fetch_add_ with inlin
Previous Message Tom Lane 2019-09-13 20:57:18 pgsql: Make tuplesort_set_bound() assertions more comprehensible, hopef