This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Simplify mips16 conversion to even address
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