Re: Volatile magic

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 26 Jan 1998 11:05:11 +0000 (GMT)


> No, it's perfectly correct. GCC 2.8 uses intmax_t for all computations in
> the preprocessor, which is long long with glibc 2.1. This is required by
> the standard. You simply cannot use the preprocessor to find the size of
> a C type.

Having the cross compiler produce different code to the native compiler
for the same input is a bug regardless of the compiler. If the cross compiler
generates different code to the native compiler then its unsuitable for
use in a serious software project where things like duplicating results
and correctness matter.

Alan