On Fri, 9 Dec 2005 10:37, Daniel O'Connor wrote: > If BREAKME is defined all the struct accesses return 255 instead of what > they should be (I think :) > > I am wondering if there is some oddity with GCC optimising for <= 4 byte > structs which unbreaks my code, but I can't see why it is broken.
This also happens with a construct like..
uint8_t buffer[5] = {
1, 2, 3, 4, 5};
If I change it to 4 bytes it works as I expect.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgpRhrXkuLVjo.pgp
Description: PGP signature
_______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
