This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: x86-64 support for gas part I
- To: Geoff Keating <geoffk at redhat dot com>
- Subject: Re: x86-64 support for gas part I
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 20 Dec 2000 22:42:02 +1100 (EST)
- cc: rth at redhat dot com, jh at suse dot cz, binutils at sourceware dot cygnus dot com, patches at x86-64 dot org
On Wed, 20 Dec 2000, Geoff Keating wrote:
> In both old K&R compilers, and ISO C compilers, on machines with
> 32-bit ints, 0xffffffff and 0x80000000 are of type 'unsigned int'.
I thought the rule for K&R hexadecimal constants was that they are of type
'int' unless they have an 'L' suffix, in which case they are of type
'long int'. 'unsigned int' doesn't get a mention, which is precisely why
there can be a problem. Under K&R, the above are signed constants, and
will be sign extended when stored into a 64-bit integral type, assuming
the compiler provides such a type.
--
Linuxcare. Support for the Revolution.