This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sizeof(long long)


Andreas Schwab wrote:

Since INT_MAX must be at least 32767 this implies that CHAR_BIT is at
least 16.  So sizeof(long long) can be 4 to be still compliant.
Unfortunately it isnt. When the mint8 is used CHAR_MAX=SHORT_MAX=INT_MAX =127. Thus it wont be compliant on long long, neither is is on the others because of this INT_MAX >= 32767 property.

BTW: Where are the min/max requirements for INT_MAX etc. defined?

Since this option makes gcc generate uncompliant code, it can as well go ahead and generate uncompliant code for long long as well...


Svein


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