>So, I guess the gcc-2.7.2.3 does automatic typecasting, the cross-egcs
>does not ? And the native char seems to be signed, while the cross-char
>unsigned ? I wonder what the ANSI C docs say about this.

ISO C allows char to be either signed or unsigned by default.  On the ARM it 
is unsigned because zero-extension is so much faster than sign extension.

You can override this with the -fsigned-char option to gcc.  I think RPM does 
this by default.

In the case you quoted the code is at fault and the compiler is correct.  

p.


unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to