x86-64 support for gas part I

Geoff Keating geoffk@geoffk.org
Wed Dec 20 01:19:00 GMT 2000


> Date: Wed, 20 Dec 2000 09:46:52 +1100 (EST)
> From: Alan Modra <alan@linuxcare.com.au>
> cc: Jan Hubicka <jh@suse.cz>, binutils@sourceware.cygnus.com,
>         patches@x86-64.org
> 
> On Tue, 19 Dec 2000, Richard Henderson wrote:
> 
> > On Tue, Dec 19, 2000 at 12:18:51PM +1100, Alan Modra wrote:
> > > > ! 		  disp = (((disp & 0xffffffff) ^ 0x80000000) - 0x80000000);
> > > 
> > > Constants in range 0x80000000 to 0xffffffff here need fixing.
> > 
> > No, this one's fine.  Either it's a 64-bit machine and the
> > sign extension happens as planned, or it's a no-op.
> 
> No, we're worried about compiling on 32-bit machines with BFD64, and both
> with old K&R compilers and ISO C compilers.

In both old K&R compilers, and ISO C compilers, on machines with
32-bit ints, 0xffffffff and 0x80000000 are of type 'unsigned int'.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


More information about the Binutils mailing list