Subject: Re: bug#72145: rare Emacs screwups on x86 due to GCC bug 58416

From: Paul Eggert <[email-masked]>
Date: Wed, 21 Aug 2024 23:44:33 -0700

GCC bug 58416 has been fixed, and the fix should appear in in the 
forthcoming GCC 15. I installed the attached patch into GNU Emacs, so 
that Emacs no longer attempts to work around the bug if GCC 15+ is being 
used.

From 3d1d4f109ed4115256a08c74eeb704259d91c9f4 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Wed, 21 Aug 2024 23:36:45 -0700
Subject: [PATCH] GCC bug 58416 is fixed in GCC 15
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* configure.ac (emacs_cv_gcc_bug_58416_CFLAGS):
No need for a workaround in GCC 15.

2024-08-19  Paul Eggert  <[email-masked]>

Remove obsolete comment about ‘volatile’
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 67da852667d..d1a5b63b924 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2365,7 +2365,7 @@ AC_DEFUN
 		    20240607 (Red Hat 14.1.1-5) on x86-64.  */
 		 #include <float.h>
 		 #if \
-		     (4 <= __GNUC__ && !defined __clang__ \
+		     (4 <= __GNUC__ && __GNUC__ <= 14 && !defined __clang__ \
 		      && (defined __i386__ || defined __x86_64__) \
 		      && ! (0 <= FLT_EVAL_METHOD && FLT_EVAL_METHOD <= 1))
 		 # error "GCC bug 58416 is possibly present"
-- 
2.43.0