GCC requires a C++14 compiler these days and libcpp is entirely C++.
libcpp/ChangeLog:
PR bootstrap/112422
* configure: Regenerate.
* configure.ac: Don't search for stdlib.h.
* system.h (HAVE_STDLIB_H): Delete.
Include stdlib.h unconditionally.
---
libcpp/configure | 2 +-
libcpp/configure.ac | 2 +-
libcpp/system.h | 4 +---
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/libcpp/configure b/libcpp/configure
index ae4011182b59..7bfb8df0edc6 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -5427,7 +5427,7 @@ fi
for ac_header in locale.h fcntl.h limits.h stddef.h \
- stdlib.h strings.h string.h sys/file.h unistd.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 3aeba91f8825..1b2ef44c1185 100644
--- a/libcpp/configure.ac
+++ b/libcpp/configure.ac
@@ -57,7 +57,7 @@ AC_HEADER_TIME
ACX_HEADER_STRING
AC_CHECK_HEADERS(locale.h fcntl.h limits.h stddef.h \
- stdlib.h strings.h string.h sys/file.h unistd.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 33893e9181e7..00c2855a1c05 100644
--- a/libcpp/system.h
+++ b/libcpp/system.h
@@ -214,9 +214,7 @@ extern int errno;
# endif
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
--
2.56.0