linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* char type is unsigned with PPC gcc?
@ 2000-04-19 13:57 Stephane Laroche
  2000-04-19 14:21 ` Gabriel Paubert
  0 siblings, 1 reply; 6+ messages in thread
From: Stephane Laroche @ 2000-04-19 13:57 UTC (permalink / raw)
  To: linuxppc-embedded


I just finished debugging the ASH shell, which wasn't running properly
on my 860, and found out that it assumes (correctly if you ask me) that
the type 'char' is signed.

GCC 2.95.2 is configured to have chars unsigned by default on the
PowerPC platforms.  The x86 GCC configures char to be signed... (looking
at gcc/config/rs6000/rs6000.h for the ppc)

Anyone knows why the PowerPC is different in this regard?

Surely I'm not the first one to come across this problem.  Should I fix
ASH or should I reconfigured gcc to default to signed char?  I think the
latter is a better idea since, if I remember correctly, ANSI C says that
char should be signed.

-Stephane


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-04-20 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <Pine.HPX.4.10.10004192203100.19933-100000@gra-ux1.iram.es>
2000-04-20 16:50 ` char type is unsigned with PPC gcc? Ron Flory
2000-04-20 21:58   ` Gabriel Paubert
2000-04-19 13:57 Stephane Laroche
2000-04-19 14:21 ` Gabriel Paubert
2000-04-19 14:24   ` Stephane Laroche
2000-04-19 14:42     ` Gabriel Paubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).