From 601598589589734c21bacfc00cd4aed4f3fd1a1f Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 27 May 2022 15:28:34 +0930 Subject: Replace bfd_hostptr_t with uintptr_t bfd_hostptr_t is defined as a type large enough to hold either a long or a pointer. It mostly appears in the coff backend code in casts. include/coff/internal.h struct internal_syment and union internal_auxent have the only uses in data structures, where comparison with include/coff/external.h and other code reveals that the type only needs to be large enough for a 32-bit integer or a pointer. That should mean replacing with uintptr_t is OK. --- bfd/configure.ac | 6 ------ 1 file changed, 6 deletions(-) (limited to 'bfd/configure.ac') diff --git a/bfd/configure.ac b/bfd/configure.ac index 52e9f8f8dcc..8ad0e05959d 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -219,17 +219,11 @@ if test "x${ac_cv_sizeof_void_p}" = "x8"; then 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 -elif test "x${ac_cv_sizeof_long_long}" = "x8"; then - if test "x${ac_cv_sizeof_void_p}" = "x8"; then - BFD_HOSTPTR_T="unsigned long long" - fi fi AC_SUBST(BFD_HOST_64BIT_LONG) -AC_SUBST(BFD_HOSTPTR_T) BFD_CC_FOR_BUILD -- cgit v1.2.1