[Bug target/53146] switch statement compiling wrong code
erikyyy at erikyyy dot de
gcc-bugzilla@gcc.gnu.org
Sat Apr 28 00:07:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53146
Erik Thiele <erikyyy at erikyyy dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #4 from Erik Thiele <erikyyy at erikyyy dot de> 2012-04-28 00:07:23 UTC ---
:-(
I'm sorry.
The reason was not putting the .data segment into the HEX file.
Please close the bug. :-(
the C switch statement is building a jump table in the data segment.
wrong: avr-objcopy -j .text -O ihex concat.out concat.hex
correct: avr-objcopy -j .text -j .data -O ihex concat.out concat.hex
More information about the Gcc-bugs
mailing list