pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit
Date: Mon, 12 Oct 2020 04:38:47 +0000
Message-ID: <E1kRpbj-0004lH-KK@gemulon.postgresql.org> (raw)

For ppc gcc, implement 64-bit compare_exchange and fetch_add with asm.

While xlc defines __64BIT__, gcc does not.  Due to this oversight in
commit 30ee5d17c20dbb282a9952b3048d6ad52d56c371, gcc builds continued
implementing 64-bit atomics by way of intrinsics.  Back-patch to v13,
where that commit first appeared.

Reviewed by Tom Lane.

Discussion: https://postgr.es/m/20201011051043.GA1724101@rfd.leadboat.com

Branch
------
master

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

Modified Files
--------------
src/include/port/atomics/arch-ppc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1kRpbj-0004lH-KK@gemulon.postgresql.org>
Permalink:  ../E1kRpbj-0004lH-KK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kRpbj-0004lH-KK@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit
  In-Reply-To: <E1kRpbj-0004lH-KK@gemulon.postgresql.org>
  References: <E1kRpbj-0004lH-KK@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox