This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: [RFA] Allow binutils compilation for mingw64 with --enable-targets=all
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Binutils'" <binutils at sourceware dot org>
- Date: Sat, 26 Mar 2011 10:57:20 +0100
- Subject: RE: [RFA] Allow binutils compilation for mingw64 with --enable-targets=all
- References: <940251302432625851@unknownmsgid> <AANLkTi=ggqFVz7-n7Mjyj=-eHDw0kYDVnyQsK+sidFit@mail.gmail.com>
> > - ? ? ?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