Replace bfd_hostptr_t with uintptr_t
authorAlan Modra <amodra@gmail.com>
Fri, 27 May 2022 05:58:34 +0000 (15:28 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 27 May 2022 12:38:59 +0000 (22:08 +0930)
commit601598589589734c21bacfc00cd4aed4f3fd1a1f
tree0aa92f84b76198ccaa2ba47b2ad647b920639289
parent65d13793d9ea142bc4383216e375b24cfa654751
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.
14 files changed:
bfd/Makefile.in
bfd/bfd-in.h
bfd/bfd-in2.h
bfd/coff-bfd.c
bfd/coffcode.h
bfd/coffgen.c
bfd/configure
bfd/configure.ac
bfd/configure.com
bfd/elflink.c
bfd/peicode.h
gas/symbols.c
gas/write.c
include/coff/internal.h