Some gcc bugs are fixed meanwhile.
gcc bug 68971 is marked fixed, but it still exists in gcc 16.1.0.


2026-05-01  Bruno Haible  <[email protected]>

        Improve comments about GCC bugs.
        * m4/nullptr.m4 (gl_NULLPTR): Add info about gcc bug 114780.
        * modules/uniname/uniname (Makefile.am): Add info about gcc bug 110112.
        * tests/test-intprops.c: Correct info about gcc bug 68971.

diff --git a/m4/nullptr.m4 b/m4/nullptr.m4
index 7c0e401022..a8692a8505 100644
--- a/m4/nullptr.m4
+++ b/m4/nullptr.m4
@@ -1,5 +1,5 @@
 # nullptr.m4
-# serial 2
+# serial 3
 dnl Copyright 2023-2026 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -16,7 +16,8 @@ AC_DEFUN([gl_NULLPTR]
        [AC_COMPILE_IFELSE(
           [AC_LANG_SOURCE([[int *p = nullptr;]])],
           [gl_cv_c_nullptr=yes
-           # Work around <https://gcc.gnu.org/PR114780>.
+           # Work around <https://gcc.gnu.org/PR114780>,
+           # that affects gcc 13.1 to 13.2.
            gl_saved_CFLAGS=$CFLAGS
            CFLAGS="$CFLAGS -Wall -Werror"
            AC_COMPILE_IFELSE(
diff --git a/modules/uniname/uniname b/modules/uniname/uniname
index 4ef4e7f8f9..bf8183f0da 100644
--- a/modules/uniname/uniname
+++ b/modules/uniname/uniname
@@ -20,8 +20,8 @@ gl_LIBUNISTRING_MODULE([1.4], [uniname/uniname])
 
 Makefile.am:
 if LIBUNISTRING_COMPILE_UNINAME_UNINAME
-# Note: Compilation of this file takes a long time with gcc ≥ 11 and option
-# -fanalyzer. See <https://gcc.gnu.org/PR110112>.
+# Note: Compilation of this file takes a long time with gcc ≥ 11, ≤ 13.2 and
+# option -fanalyzer. See <https://gcc.gnu.org/PR110112>.
 # The best workaround is to install GNU libunistring first, and use module
 # 'libunistring-optional' in your package.
 # An alternative workaround would be to pass the option -fno-analyzer, using
diff --git a/tests/test-intprops.c b/tests/test-intprops.c
index 8cbc8f9c13..e3bdecd26c 100644
--- a/tests/test-intprops.c
+++ b/tests/test-intprops.c
@@ -25,7 +25,7 @@
 # pragma GCC diagnostic ignored "-Woverlength-strings"
 # pragma GCC diagnostic ignored "-Wtype-limits"
 
-/* Work around a bug in GCC 6.1 and earlier; see:
+/* Work around a bug in GCC 5 and newer; see:
    https://gcc.gnu.org/PR68971  */
 # pragma GCC diagnostic ignored "-Woverflow"
 




Reply via email to