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. --- gas/write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gas/write.c') diff --git a/gas/write.c b/gas/write.c index f607562..20f5ce2 100644 --- a/gas/write.c +++ b/gas/write.c @@ -3212,7 +3212,7 @@ print_fixup (fixS *fixp) { indent_level = 1; fprintf (stderr, "fix "); - fprintf_vma (stderr, (bfd_vma)((bfd_hostptr_t) fixp)); + fprintf_vma (stderr, (bfd_vma) (uintptr_t) fixp); fprintf (stderr, " %s:%d",fixp->fx_file, fixp->fx_line); if (fixp->fx_pcrel) fprintf (stderr, " pcrel"); @@ -3223,7 +3223,7 @@ print_fixup (fixS *fixp) if (fixp->fx_done) fprintf (stderr, " done"); fprintf (stderr, "\n size=%d frag=", fixp->fx_size); - fprintf_vma (stderr, (bfd_vma) ((bfd_hostptr_t) fixp->fx_frag)); + fprintf_vma (stderr, (bfd_vma) (uintptr_t) fixp->fx_frag); fprintf (stderr, " where=%ld offset=%lx addnumber=%lx", (long) fixp->fx_where, (unsigned long) fixp->fx_offset, -- cgit v1.1