lkml.org 
[lkml]   [1998]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Volatile magic
From
Date
Alan Cox <alan@lxorguk.ukuu.org.uk> writes:

|>> 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.

No, it's a bug in the code, you're misusing the preprocessor. The
standard allows this behaviour. The arithmetics in the preprocessor were
never required to be exactly the same as in the compiler proper. And this
is not a cross vs. native issue, because even the native compiler has the
same behaviour.

--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.722 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site