From: SourceForge.net <no...@so...> - 2006-02-11 11:08:36
|
Bugs item #1426356, was opened at 2006-02-07 18:26 Message generated for change (Comment added) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1426356&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Icode generator >Group: fixed >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Stas Sergeev (stsp) >Assigned to: Maarten Brock (maartenbrock) Summary: static initializers for unions broken Initial Comment: Hi. Attached is the test-case for the bug. The initializer looks like this: --- {{ 1, {{ 2 }}, {{ 3 }} }} --- While the generated code is this: --- _main_tst_1_1: .db #0x01 .db #0x02 .db 0x00 .db #0x03 .db 0x00 .db 0x00 .db 0x00 .db 0x00 --- So, instead of 3 bytes, sdcc generated 8, and the byte 2 is misplaced, as demonstrated by the test program in attachment. PS: I am not sure if this is anyhow related to #1232186 ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2006-02-11 12:08 Message: Logged In: YES user_id=888171 Fized in SDCC 2.5.4 #1204 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1426356&group_id=599 |