This is the mail archive of the binutils@sourceware.cygnus.com 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]

Re: gas/config/tc-alpha.c


Michael Meissner wrote:

> > I guess it doesn't matter a great deal as binutils is riddled with this
> > sort of assumption about sizes of integral types.  I did have some idea of
> > attacking the problem, but it seems a whole lot of work for little
> > immediate benefit.
> 
> Or include limits.h (presumably also checking if limits.h exists via autoconf),
> and base the #if on whether you have 8 bit bytes and 16 bit longs, which would
> be the portable way of doing it.

Why not go all the way and have bfd provide bfd_int8, bfd_int16, et.al.
That way:

	((bfd_signed_vma) (bfd_int16) val)

would work optimally.

	Andrew

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