https://gcc.gnu.org/g:865ee398964375db9a77e827405318d7d31db173
commit r17-5036-g865ee398964375db9a77e827405318d7d31db173 Author: Sam James <[email protected]> Date: Tue Jun 9 22:44:07 2026 +0100 libcpp: assume <stddef.h> is available GCC requires a C++14 compiler these days and libcpp is entirely C++. libcpp/ChangeLog: PR bootstrap/112422 * config.in: Regenerate. * configure: Regenerate. * configure.ac: Don't search for stddef.h. * system.h (HAVE_STDDEF_H): Delete. Include stddef.h unconditionally. Diff: --- libcpp/config.in | 3 --- libcpp/configure | 3 +-- libcpp/configure.ac | 3 +-- libcpp/system.h | 4 +--- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/libcpp/config.in b/libcpp/config.in index bbc957d4c35d..13322ee0e7df 100644 --- a/libcpp/config.in +++ b/libcpp/config.in @@ -216,9 +216,6 @@ /* Define to 1 if you can assemble SSSE3 insns. */ #undef HAVE_SSSE3 -/* Define to 1 if you have the <stddef.h> header file. */ -#undef HAVE_STDDEF_H - /* Define to 1 if you have the <stdint.h> header file. */ #undef HAVE_STDINT_H diff --git a/libcpp/configure b/libcpp/configure index 7bfb8df0edc6..09cba30e599d 100755 --- a/libcpp/configure +++ b/libcpp/configure @@ -5426,8 +5426,7 @@ $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h fi -for ac_header in locale.h fcntl.h limits.h stddef.h \ - strings.h string.h sys/file.h unistd.h +for ac_header in locale.h fcntl.h limits.h strings.h string.h sys/file.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/libcpp/configure.ac b/libcpp/configure.ac index 1b2ef44c1185..147d28fe3d8d 100644 --- a/libcpp/configure.ac +++ b/libcpp/configure.ac @@ -56,8 +56,7 @@ ZW_PROG_COMPILER_DEPENDENCIES([CXX]) AC_HEADER_TIME ACX_HEADER_STRING -AC_CHECK_HEADERS(locale.h fcntl.h limits.h stddef.h \ - strings.h string.h sys/file.h unistd.h) +AC_CHECK_HEADERS(locale.h fcntl.h limits.h strings.h string.h sys/file.h unistd.h) # Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN diff --git a/libcpp/system.h b/libcpp/system.h index 00c2855a1c05..e174df592205 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -24,10 +24,8 @@ along with GCC; see the file COPYING3. If not see /* We must include stdarg.h before stdio.h. */ #include <stdarg.h> +#include <stddef.h> -#ifdef HAVE_STDDEF_H -# include <stddef.h> -#endif #ifdef HAVE_STDINT_H # include <stdint.h> #endif
