postgresql/src/include/port/atomics
Tom Lane 8ded65682b Remove configurability of PPC spinlock assembly code.
Assume that we can use LWARX hint flags and the LWSYNC instruction
on any PPC machine.  The check on the assembler's behavior was only
needed for Apple's old assembler, which is no longer of interest
now that we've de-supported all PPC-era versions of macOS (thanks
to them not having clock_gettime()).  Also, given an up-to-date
assembler these instructions work even on Apple's old hardware.
It seems quite unlikely that anyone would be interested in running
current Postgres on PPC hardware that's so old as to not have
these instructions.

Hence, rip out associated configure test and manual configuration
options, and just use the modernized instructions all the time.
Also, update atomics/arch-ppc.h to use these instructions as well.
(It was already using LWSYNC unconditionally in another place,
providing further proof that nobody is using PG on hardware old
enough to have a problem with that.)

Discussion: https://postgr.es/m/166622.1660323391@sss.pgh.pa.us
2022-08-13 13:36:39 -04:00
..
arch-arm.h Declare aarch64 has single copy atomicity for 8 byte values. 2022-03-18 13:40:26 +13:00
arch-hppa.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
arch-ppc.h Remove configurability of PPC spinlock assembly code. 2022-08-13 13:36:39 -04:00
arch-x86.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
fallback.h Remove HP-UX port. 2022-07-08 14:05:05 +12:00
generic-gcc.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
generic-msvc.h Remove HP/Intel Itanium support. 2022-07-08 14:14:57 +12:00
generic-sunpro.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
generic.h Update copyright for 2022 2022-01-07 19:04:57 -05:00