>>>>> "zhu" == zhu qun ying <[EMAIL PROTECTED]> writes:
zhu>...
zhu> I know the compiler is free to implement char as signed or
zhu> unsigned or "pseudo unsigned" according to the standard. But as
zhu> gcc is treating char as signed char for other platforms, I
zhu> wonder is this a special treatment for StronARM? Is it a bug in
zhu> GCC? Or my assumsion of gcc will treat char as signed for all
zhu> platform is simply wrong. Should it behaves consistently across
zhu> platforms?
No. The compiler is perfectly well entitled to do it differently for
different platforms.
If you say "char" in your program, you're telling the compiler that it
doesn't matter whether it is signed or unsigned. If it does matter,
then you *must* write "signed char" or "unsigned char". If you don't
do that, it's a bug in your code...
paul
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++