pgsql: Replace xlc __fetch_and_add() with inline asm.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Replace xlc __fetch_and_add() with inline asm.
Date: 2019-09-14 02:41:39
Message-ID: E1i8y0J-00076Z-Mp@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1c6b62a7d0e57bf9ac7a91d47484b1ea9f2857cd

Modified Files
--------------
src/include/port/atomics/generic-xlc.h | 39 ++++++++++++++++++++++++++++++----
1 file changed, 35 insertions(+), 4 deletions(-)

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