+2025-04-25 Paul Eggert <eggert@cs.ucla.edu>
+
+ stddef-h: port better to future GCC 13.4, 14.3
+ * m4/stddef_h.m4 (gl_STDDEF_H): The idempotency bug should
+ be fixed in GCC 13.4 and 14.3, if and when they’re published.
+
2025-04-25 Bruno Haible <bruno@clisp.org>
unistdio/u*-vasnprintf: Fix handling of grouping rule.
Some platforms define @code{nullptr_t} even when @code{<stddef.h>} is
not included:
@c https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869
-GCC 14.0.1 20240411 (Red Hat 14.0.1-0).
+GCC 14
@item
Some platforms provide an @code{offsetof} macro that cannot be used in
|| defined __need_ptrdiff_t || defined __need_NULL \
|| defined __need_wint_t) \
/* Avoid warning triggered by "gcc -std=gnu23 -Wsystem-headers" \
- in Fedora 40 with gcc 14.0.1. \
+ in GCC 13.3 and 14.2 \
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870>. */ \
&& !@STDDEF_NOT_IDEMPOTENT@
/* Special invocation convention inside gcc header files. In
# stddef_h.m4
-# serial 19
+# serial 20
dnl Copyright (C) 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
dnl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870
- dnl affects GCC 13 and 14.
+ dnl affects GCC 13.3 and 14.2.
AC_CACHE_CHECK([whether <stddef.h> is idempotent],
[gl_cv_stddef_idempotent],
[AC_COMPILE_IFELSE([AC_LANG_SOURCE(
[[
- #if __GNUC__ == 13 || __GNUC__ == 14
+ #if \
+ ((__GNUC__ == 13 && __GNUC_MINOR <= 3) \
+ || (__GNUC__ == 14 && __GNUC_MINOR <= 2))
#error "bug 114870 is present"
#endif
]])],