This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linuxppc


On Nov 12, 2000, Magnus Ågren <isc07046@comp.nus.edu.sg> wrote:

> So I have to use the -fsigned-char flag when compiling. This is not the
> case when compiling on linux intel, shouldn't it be the same???

Nope.  Whether `char' is signed or unsigned by default belongs in the
ABI specification of each platform/OS.  Each ABI is likely to
privilege faster operations on the affected hardware platform, so
that, when you don't care about signedness (which you shouldn't when
using plain char), you don't pay for it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]