This is the mail archive of the binutils@sources.redhat.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: x86-64 support for gas part I


> 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>

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