hppa64-hp-hpux11.11 needs HAVE_LONG_LONG for libiberty.h
to declare strto{u,}ll functions.
John David Anglin approved this fix hppa64 bootstrap on PR.
Bootstrapped and regtested on x86_64-pc-linux-gnu.
PR bootstrap/112422
PR bootstrap/128228
gcc/ChangeLog:
* configure.ac (HAVE_LONG_LONG): Add it back.
* config.in: Regenerate.
* configure: Regenerate.
Signed-off-by: Kael Andrew Franco <[email protected]>
---
gcc/config.in | 6 ++++++
gcc/configure | 7 +++++--
gcc/configure.ac | 2 ++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/gcc/config.in b/gcc/config.in
index 1027a45a207..66b66f11112 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -1771,6 +1771,12 @@
#endif
+/* hppa64-hp-hpux11.11 needs this for libiberty strtoll declaration. */
+#ifndef USED_FOR_TARGET
+#undef HAVE_LONG_LONG
+#endif
+
+
/* Define to 1 if the system has the type `long long int'. */
#ifndef USED_FOR_TARGET
#undef HAVE_LONG_LONG_INT
diff --git a/gcc/configure b/gcc/configure
index 14c9b39d9ce..cc634951e8a 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -6625,6 +6625,9 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
+
+$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
+
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
@@ -22088,7 +22091,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 22091 "configure"
+#line 22094 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -22194,7 +22197,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 22197 "configure"
+#line 22200 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 06b23d6de41..34cd8759e87 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -522,6 +522,8 @@ AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
+AC_DEFINE(HAVE_LONG_LONG, 1,
+ [hppa64-hp-hpux11.11 needs this for libiberty strtoll declaration.])
AC_CHECK_SIZEOF(long long)
GCC_STDINT_TYPES
if test x"$ac_cv_c_uint64_t" = x"no" -o x"$ac_cv_c_int64_t" = x"no"; then
--
2.56.0