pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit
2+ messages / 1 participants
[nested] [flat]

* pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit
@ 2020-10-12 04:38 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Noah Misch @ 2020-10-12 04:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit
@ 2020-10-12 04:38 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Noah Misch @ 2020-10-12 04:38 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_13_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2020-10-12 04:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-12 04:38 pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit Noah Misch <noah@leadboat.com>
2020-10-12 04:38 pgsql: For ppc gcc, implement 64-bit compare_exchange and fetch_add wit Noah Misch <noah@leadboat.com>

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