[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] intprops: document fix for GCC bug 68193
From: |
Paul Eggert |
Subject: |
[PATCH] intprops: document fix for GCC bug 68193 |
Date: |
Tue, 30 Apr 2024 19:37:42 -0700 |
* lib/intprops-internal.h (_GL__GENERIC_BOGUS):
GCC bug 68193 is fixed in GCC 14. This is just for documentation,
as _GL__GENERIC_BOGUS is not consulted in GCC 14.
---
ChangeLog | 7 +++++++
lib/intprops-internal.h | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index bf68bf6369..e2c736f854 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-04-30 Paul Eggert <eggert@cs.ucla.edu>
+
+ intprops: document fix for GCC bug 68193
+ * lib/intprops-internal.h (_GL__GENERIC_BOGUS):
+ GCC bug 68193 is fixed in GCC 14. This is just for documentation,
+ as _GL__GENERIC_BOGUS is not consulted in GCC 14.
+
2024-04-30 Bruno Haible <bruno@clisp.org>
*printf: Don't invoke gl_PRINTF_DIRECTIVE_N when it's not needed.
diff --git a/lib/intprops-internal.h b/lib/intprops-internal.h
index b5ba8d7cbd..443024c665 100644
--- a/lib/intprops-internal.h
+++ b/lib/intprops-internal.h
@@ -185,10 +185,10 @@
/* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
https://llvm.org/bugs/show_bug.cgi?id=25390
- For now, assume all versions of GCC-like compilers generate bogus
+ For now, assume GCC < 14 and all Clang versions generate bogus
warnings for _Generic. This matters only for compilers that
lack relevant builtins. */
-#if __GNUC__ || defined __clang__
+#if (__GNUC__ && __GNUC__ < 14) || defined __clang__
# define _GL__GENERIC_BOGUS 1
#else
# define _GL__GENERIC_BOGUS 0
--
2.44.0
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] intprops: document fix for GCC bug 68193,
Paul Eggert <=