aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-05-27 14:10:17 +0930
committerAlan Modra <amodra@gmail.com>2022-05-27 22:08:59 +0930
commit65d13793d9ea142bc4383216e375b24cfa654751 (patch)
tree000780212119525b0421850eda8e6dfde8a6f0df /bfd/configure.ac
parent0e3c1eebb22e0ade28b619fb41f42d66ed6fb145 (diff)
downloadgdb-65d13793d9ea142bc4383216e375b24cfa654751.zip
gdb-65d13793d9ea142bc4383216e375b24cfa654751.tar.gz
gdb-65d13793d9ea142bc4383216e375b24cfa654751.tar.bz2
Remove much of BFD_HOST configury
This patch removes the definition of bfd_uint64_t and bfd_int64_t as well as most BFD_HOST_* which are now unused.
Diffstat (limited to 'bfd/configure.ac')
-rw-r--r--bfd/configure.ac32
1 files changed, 4 insertions, 28 deletions
diff --git a/bfd/configure.ac b/bfd/configure.ac
index 8004c3e..52e9f8f 100644
--- a/bfd/configure.ac
+++ b/bfd/configure.ac
@@ -209,13 +209,6 @@ AM_PO_SUBDIRS
AC_SUBST(HDEFINES)
AC_PROG_INSTALL
-BFD_HOST_64BIT_LONG=0
-BFD_HOST_64BIT_LONG_LONG=0
-BFD_HOST_64_BIT_DEFINED=0
-BFD_HOST_64_BIT=
-BFD_HOST_U_64_BIT=
-BFD_HOSTPTR_T="unsigned long"
-
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(long)
@@ -225,30 +218,17 @@ if test "x${ac_cv_sizeof_void_p}" = "x8"; then
host64=true
fi
+BFD_HOST_64BIT_LONG=0
+BFD_HOSTPTR_T="unsigned long"
if test "x${ac_cv_sizeof_long}" = "x8"; then
BFD_HOST_64BIT_LONG=1
- test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
- test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
- BFD_HOST_64BIT_LONG_LONG=1
- test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
- test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
if test "x${ac_cv_sizeof_void_p}" = "x8"; then
BFD_HOSTPTR_T="unsigned long long"
fi
fi
-if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
- BFD_HOST_64_BIT_DEFINED=1
- BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
- BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
-fi
-
AC_SUBST(BFD_HOST_64BIT_LONG)
-AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
-AC_SUBST(BFD_HOST_64_BIT_DEFINED)
-AC_SUBST(BFD_HOST_64_BIT)
-AC_SUBST(BFD_HOST_U_64_BIT)
AC_SUBST(BFD_HOSTPTR_T)
BFD_CC_FOR_BUILD
@@ -782,10 +762,6 @@ case ${host64}-${target64}-${want64} in
wordsize=64
bfd64_libs='$(BFD64_LIBS)'
all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
- if test $BFD_HOST_64_BIT_DEFINED = 0; then
- AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
- AC_MSG_WARN([your compiler may not have a 64 bit integral type])
- fi
if test -n "$GCC" ; then
bad_64bit_gcc=no;
AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
@@ -1087,8 +1063,8 @@ bfd_file_ptr="long"
bfd_ufile_ptr="unsigned long"
if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
-o x"${ac_cv_sizeof_off_t}" = x8; then
- bfd_file_ptr=BFD_HOST_64_BIT
- bfd_ufile_ptr=BFD_HOST_U_64_BIT
+ bfd_file_ptr=int64_t
+ bfd_ufile_ptr=uint64_t
fi
AC_MSG_RESULT($bfd_file_ptr)
AC_SUBST(bfd_file_ptr)