That's a typo in src/include/port/atomics/arch-x86.h, isn't it ?:
   if defined(__i568__) || defined(__i668__) || /* gcc i586+ */
If yes, then a patch is attached. Not that it harms something or
somebody has such old hardware, but I've just spotted it while looking
for something else.

-J.
From c1091d885cd4eca8a33511519de280da24603fcb Mon Sep 17 00:00:00 2001
From: Jakub Wartak <[email protected]>
Date: Fri, 28 Nov 2025 09:39:17 +0100
Subject: [PATCH v1] Fix typo in 586/686 in atomics/arch-x86.h

---
 src/include/port/atomics/arch-x86.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/port/atomics/arch-x86.h b/src/include/port/atomics/arch-x86.h
index 4ba2ccc0591..aa8dedcd34a 100644
--- a/src/include/port/atomics/arch-x86.h
+++ b/src/include/port/atomics/arch-x86.h
@@ -239,7 +239,7 @@ pg_atomic_fetch_add_u64_impl(volatile pg_atomic_uint64 *ptr, int64 add_)
  * 8 byte reads / writes have single-copy atomicity on 32 bit x86 platforms
  * since at least the 586. As well as on all x86-64 cpus.
  */
-#if defined(__i568__) || defined(__i668__) || /* gcc i586+ */  \
+#if defined(__i586__) || defined(__i686__) || /* gcc i586+ */  \
 	(defined(_M_IX86) && _M_IX86 >= 500) || /* msvc i586+ */ \
 	defined(__x86_64__) || defined(__x86_64) || defined(_M_X64) /* gcc, msvc */
 #define PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY
-- 
2.43.0

Reply via email to