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


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.



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