From 8ded65682bee2a1c04392a88e0df0f4fc7552623 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 13 Aug 2022 13:36:39 -0400 Subject: 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 --- src/tools/msvc/Solution.pm | 1 - 1 file changed, 1 deletion(-) (limited to 'src/tools/msvc') diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index df594b2fe7a..6300053dbe5 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -313,7 +313,6 @@ sub GenerateFiles HAVE_PAM_PAM_APPL_H => undef, HAVE_POSIX_FADVISE => undef, HAVE_POSIX_FALLOCATE => undef, - HAVE_PPC_LWARX_MUTEX_HINT => undef, HAVE_PPOLL => undef, HAVE_PS_STRINGS => undef, HAVE_PTHREAD => undef, -- cgit v1.2.3