This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> > - ? ? ?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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]