]> Savannah Git Hosting - gnulib.git/commitdiff
doc: update some GCC version comments
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Apr 2025 00:03:48 +0000 (17:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 26 Apr 2025 00:04:29 +0000 (17:04 -0700)
GCC 15.1 is released, and we can update some commentary now.

doc/gnulib.texi
lib/diffseq.h
m4/gnulib-common.m4
tests/test-sprintf-posix.h

index 3ffd5b88c2d0780a6c85d5bc4e9d72b2b40cea2d..b49109e02be19ecf2ec3acdc6a5562d952099e04 100644 (file)
@@ -1076,7 +1076,7 @@ limitations.
 
 @item
 GCC 14 defines @code{nullptr_t} even when @code{<stddef.h>} is not
-included.  This bug should be fixed in GCC 15.
+included.  This bug is fixed in GCC 15.
 @end itemize
 
 @node static_assert
index 8a823f98ea025eafcca3aa4c056924819e5bc861..9a454a6c91defb3f8ed1a8eddc1d0c8d7438bb23 100644 (file)
@@ -93,7 +93,7 @@
 #endif
 
 /* Suppress gcc's "...may be used before initialized" warnings,
-   generated by GCC versions up to at least GCC 14.2.
+   generated by GCC versions up to at least GCC 15.1.
    Likewise for gcc -fanalyzer's "use of uninitialized value" warnings.  */
 #if _GL_GNUC_PREREQ (4, 7)
 # pragma GCC diagnostic push
index daf05db2a4750ea306194581c95852814e84ebea..4dd3b16f1da872e11d132d96f6b9d76af2e5dce2 100644 (file)
@@ -117,6 +117,9 @@ AC_DEFUN([gl_COMMON_BODY], [
 #  define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
 # else
 #  define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
+/* The following lines list the first GCC version that supports the attribute.
+   Although the lines are not used in GCC 5 and later (as GCC 5 introduced
+   __has_attribute support), list GCC versions 5+ anyway for completeness.  */
 #  define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
 #  define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
 #  define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
@@ -141,10 +144,10 @@ AC_DEFUN([gl_COMMON_BODY], [
 #  define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
 #  define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
 #  define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
-#  define _GL_ATTR_reproducible 0 /* not yet supported, as of GCC 14 */
+#  define _GL_ATTR_reproducible _GL_GNUC_PREREQ (15, 1)
 #  define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
 #  define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
-#  define _GL_ATTR_unsequenced 0 /* not yet supported, as of GCC 14 */
+#  define _GL_ATTR_unsequenced _GL_GNUC_PREREQ (15, 1)
 #  define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
 #  define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
 # endif
index f84ddf11c6c8919d28383d9e76cd477166924381..aa09853651d0cb2595529ece4fbaabeb1cc1f3ab 100644 (file)
@@ -3167,7 +3167,8 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
         and an initial shift state."  */
     /* This test is known to fail
          - on musl libc,
-         - with gcc 14 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114876>  */
+         - with GCC 14.1, 13.2, 12.3, and 11.4
+           <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114876>  */
     ASSERT (memcmp (result, "a\0z 33\0", 6 + 1) == 0);
     ASSERT (retval == 6);
   }