https://gcc.gnu.org/g:0cc4bc9c6ff09e605e2b8e7950ebaa074bbee2c9

commit r17-5295-g0cc4bc9c6ff09e605e2b8e7950ebaa074bbee2c9
Author: Sam James <[email protected]>
Date:   Wed Oct 14 02:45:42 2026 +0100

    gcc: assume stddef.h, time.h
    
    C89.
    
    gcc/ChangeLog:
            PR bootstrap/112422
    
            * config.in: Regenerate.
            * configure: Regenerate.
            * configure.ac: Don't search for stddef.h, time.h.
            * system.h: Drop guards for stddef.h, time.h.

Diff:
---
 gcc/config.in    | 12 ------------
 gcc/configure    |  2 +-
 gcc/configure.ac |  2 +-
 gcc/system.h     |  5 +----
 4 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/gcc/config.in b/gcc/config.in
index 54b5847e0669..f914a151f7eb 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -1934,12 +1934,6 @@
 #endif
 
 
-/* Define to 1 if you have the <stddef.h> header file. */
-#ifndef USED_FOR_TARGET
-#undef HAVE_STDDEF_H
-#endif
-
-
 /* Define to 1 if you have the <stdint.h> header file. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_STDINT_H
@@ -2063,12 +2057,6 @@
 #endif
 
 
-/* Define to 1 if you have the <time.h> header file. */
-#ifndef USED_FOR_TARGET
-#undef HAVE_TIME_H
-#endif
-
-
 /* Define to 1 if you have the <tr1/unordered_map> header file. */
 #ifndef USED_FOR_TARGET
 #undef HAVE_TR1_UNORDERED_MAP
diff --git a/gcc/configure b/gcc/configure
index b891251481ee..456c1d1aba76 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -9345,7 +9345,7 @@ $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
   fi
 fi
 
-for ac_header in stddef.h string.h strings.h time.h iconv.h \
+for ac_header in string.h strings.h iconv.h \
                 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h 
sys/mman.h \
                 sys/resource.h sys/param.h sys/times.h sys/stat.h 
sys/locking.h \
                 direct.h malloc.h langinfo.h ldfcn.h wchar.h libgen.h
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 48dd860ccaea..395e793a96c7 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1351,7 +1351,7 @@ AC_HEADER_TIME
 ACX_HEADER_STRING
 AC_HEADER_SYS_WAIT
 AC_HEADER_TIOCGWINSZ
-AC_CHECK_HEADERS(stddef.h string.h strings.h time.h iconv.h \
+AC_CHECK_HEADERS(string.h strings.h iconv.h \
                 fcntl.h ftw.h unistd.h sys/auxv.h sys/file.h sys/time.h 
sys/mman.h \
                 sys/resource.h sys/param.h sys/times.h sys/stat.h 
sys/locking.h \
                 direct.h malloc.h langinfo.h ldfcn.h wchar.h libgen.h)
diff --git a/gcc/system.h b/gcc/system.h
index 53d419dcbddc..b967c5677fa0 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -47,10 +47,7 @@ along with GCC; see the file COPYING3.  If not see
 # endif
 #endif
 
-#ifdef HAVE_STDDEF_H
-# include <stddef.h>
-#endif
-
+#include <stddef.h>
 #include <stdio.h>
 
 /* Define a generic NULL if one hasn't already been defined.  */

Reply via email to