[RFA] Allow binutils compilation for mingw64 with --enable-targets=all

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Sat Mar 26 09:57:00 GMT 2011


> > -      printf ("List of blocks %lx ",(unsigned long) p);
> > +      printf ("List of blocks %" BFD_VMA_FMT "x ",(bfd_vma) (uintptr_t)
> p);
> I can't approve this. Yes, thanks for catching this.  But is it really
> necessary to do the uintptr_t cast before the final bfd_vma cast?
> bfd_vma should be always >= sizeof (void *), isn't it?

  I think that you get a warning as soon as the
size is different, and typically on a 32-bit system
with 64-bit bfd enabled, bfd_vma will be 
a 64-bit integer and p a 32-bit pointer, which will generate
a warning that is suppressed by this double typecast.

Pierre Muller



More information about the Binutils mailing list