intprops: document fix for GCC bug 68193
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 May 2024 02:36:43 +0000 (19:36 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 May 2024 02:37:13 +0000 (19:37 -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
lib/intprops-internal.h

index bf68bf63694fc882a903df80d322f567389ab30a..e2c736f854ba899e5e1062f33011ab7364b3773f 100644 (file)
--- 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.
index b5ba8d7cbd25f4c9a40b8b979b859d54ca26ba25..443024c66573c6f484254a40c5fc946412650271 100644 (file)
 /* 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