diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-27 15:28:34 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-27 22:08:59 +0930 |
commit | 601598589589734c21bacfc00cd4aed4f3fd1a1f (patch) | |
tree | 0aa92f84b76198ccaa2ba47b2ad647b920639289 /bfd/configure | |
parent | 65d13793d9ea142bc4383216e375b24cfa654751 (diff) | |
download | binutils-601598589589734c21bacfc00cd4aed4f3fd1a1f.zip binutils-601598589589734c21bacfc00cd4aed4f3fd1a1f.tar.gz binutils-601598589589734c21bacfc00cd4aed4f3fd1a1f.tar.bz2 |
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.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bfd/configure b/bfd/configure index a0071d9..3d26562 100755 --- a/bfd/configure +++ b/bfd/configure @@ -656,7 +656,6 @@ zlibinc zlibdir EXEEXT_FOR_BUILD CC_FOR_BUILD -BFD_HOSTPTR_T BFD_HOST_64BIT_LONG HDEFINES MSGMERGE @@ -11088,7 +11087,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11091 "configure" +#line 11090 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11194,7 +11193,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11197 "configure" +#line 11196 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12843,18 +12842,12 @@ 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 - # Put a plausible default for CC_FOR_BUILD in Makefile. if test -z "$CC_FOR_BUILD"; then if test "x$cross_compiling" = "xno"; then |