pgsql: For all ppc compilers, implement compare_exchange and fetch_add
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Date: 2019-10-19T03:27:18Z
Lists: 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(-)
Commits
-
Choose ppc compare_exchange constant path for more operand values.
- 5efa788e1d07 13.1 landed
- 88ea7a1188d1 14.0 landed
-
For ppc gcc, implement 64-bit compare_exchange and fetch_add with asm.
- d41cb63ff4d1 13.1 landed
- f5c1167b173d 14.0 landed
-
For all ppc compilers, implement compare_exchange and fetch_add with asm.
- 30ee5d17c20d 13.0 cited