gcc version 2.95.3 20010315 (release/MontaVista) cross compiler

Bret Indrelee Bret.Indrelee at qlogic.com
Thu Dec 18 10:27:04 EST 2003


On Wed, 17 Dec 2003, David C. Chiu wrote:
>
> We're experiencing some unexpected behavior with binary generated with
> the said version of gcc; namely that variables declared to char appear
> to be defaulting to unsigned char.

[ snip ]

> Can someone shed some light on this? (As in, is this "normal" and we do
> not know only because we've been living under a rock ;-)

It is allowable by the specification. C89 allowed char to be either
signed or unsigned, it was up to the implementation to decide which.

-Bret

--
Bret Indrelee                 QLogic Corporation
Bret.Indrelee at qlogic.com      6321 Bury Drive, St 13, Eden Prairie, MN 55346


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list