pgsql: For all ppc compilers, implement compare_exchange and fetch_add

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: For all ppc compilers, implement compare_exchange and fetch_add
Date: 2019-10-19 03:27:18
Message-ID: E1iLfOg-0005hK-98@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

For all ppc compilers, implement compare_exchange and fetch_add with asm.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/30ee5d17c20dbb282a9952b3048d6ad52d56c371

Modified Files
--------------
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(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-10-19 16:38:53 pgsql: Fix most -Wundef warnings
Previous Message Michael Paquier 2019-10-19 02:25:46 pgsql: Remove last traces of heap_open/close in the tree

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2019-10-19 04:01:04 Re: Backport "WITH ... AS MATERIALIZED" syntax to <12?
Previous Message Michael Paquier 2019-10-19 02:41:06 Re: v12.0: reindex CONCURRENTLY: lock ShareUpdateExclusiveLock on object 14185/39327/0 is already held