[PATCH] Simplify mips16 conversion to even address

Richard Sandiford rsandifo@redhat.com
Sat Mar 6 20:35:00 GMT 2004


Alan Modra <amodra@bigpond.net.au> writes:
> On Sat, Mar 06, 2004 at 11:36:51AM +0000, Richard Sandiford wrote:
>> Fred Fish <fnf@ninemoons.com> writes:
>> > +  if (sym->st_other == STO_MIPS16)
>> > +    sym->st_value &= ~1;
>> 
>> This isn't 64-bit clean, is it?
>
> No, it's OK.  `1' is an int.  ~1 is too, == -2.  -2 is sign extended
> when promoting to larger integer types.

Doh!  Yes of course, sorry for the noise...

Richard



More information about the Binutils mailing list