Fix gcc bootstrap problem
Jakub Jelinek
jakub@redhat.com
Mon Aug 20 12:47:00 GMT 2007
On Mon, Aug 20, 2007 at 11:53:47AM +0100, Nick Clifton wrote:
> Hi Alan,
>
> >On Mon, Aug 20, 2007 at 09:25:09AM +0100, Nick Clifton wrote:
> >> offset &= (bfd_vma)~((1L << s->alignment_power) - 1L);
> >>
> >> which I think should satisfy everyone.
> >
> >Not me. :-) long might only be 32 bit and bfd_vma 64 bit.
> >
> > offset &= ~(((bfd_vma) 1 << s->alignment_power) - 1);
>
> Doh! Yes that is better. I will check in this change.
Or shorter
offset &= ~(bfd_vma) 0 << s->alignment_power;
Jakub
More information about the Binutils
mailing list