long long availability in host compiler (Re: constant that doesn't fit in 32bits in alpha.c)

Richard Earnshaw rearnsha@arm.com
Fri Jun 15 10:40:00 GMT 2012


On 15/06/12 10:48, Eric Botcazou wrote:
>> It's not about example, but the fact that host compilers have been
>> compiling that code as part of building gcc for years, without anyone
>> complaining, afaik.  It doesn't matter whether the code pointed at
>> is the ugliest or most beautiful code on earth.  What matters is whether
>> it uses long long unconditionally on all hosts or not.
>> IOW, what are the still supported hosts/compilers that don't
>> support "long long"?  If there are any, it appears none has been used
>> in at least the past 5 years, IIU the code correctly.
> 
> OK, but GCC still officially requires only an ISO C90 compiler 
>   http://gcc.gnu.org/install/prerequisites.html
> so the usage of 'long long' in libdecnumber is a bug that could be fixed at 
> some point.  That's why using it as a precedent isn't the best thing to do.
> 

There are several ports that currently require long long support in the
back-end -- see need_64bit_hwint in config.gcc.

R.




More information about the Gcc-patches mailing list