[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] gcc -mshort question



Hi all,

Just yesterday I noticed that my gcc seems to be doing strange things when
-mshort is enabled. It reports sizeof(short)=0, long=2, int=0, and char=4.
Without -mshort shorts are 2, longs and ints 4, and chars 1, just as it should
be.
I'm using gcc 2.5.8 with some mac-specific patches that allow Macsbug symbols
and multi-byte characters-this could probably explain why sizeof(char)=4, but
what about the other ones?

Anybody else understand this?

As I don't really use the mac-specific features of the program, I should
really get a newer version. What's the latest gcc ported to MiNT?


Thanks!

ttfn
Jonathan