This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Is it a bug of gcc?


hi,all:
I established the gnu tool chain for powerpc-eabi under cygwin and windows 2k with gcc-3.3.2 binutils-2.14 newlib-1.11.0 and gdb-6.0
Now I met a strange problem with array data type.
In IO.c an array named CSSTbl is defined:
const UINT8 CSSTble[6] = {0xe0,0xc0,0xa0,0x60,0x20,0x40};
An error went out in my program when it runs in reality and i spent some time to find out the reason.At last i found that the value of CSSTbl in memory was not as it was defined,but was:
CSSTbl[6] = {0xc0,0xa0,0x60,0x20,0x40,0x0}


Is it a bug?

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn



------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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