From: SourceForge.net <no...@so...> - 2012-08-20 23:14:02
|
Bugs item #3559997, was opened at 2012-08-20 16:13 Message generated for change (Comment added) made by mz-fuzzy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3559997&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: z80 port Group: None Status: Open Resolution: None >Priority: 7 Private: No Submitted By: Martin Matyas (mz-fuzzy) Assigned to: Nobody/Anonymous (nobody) Summary: Z80: Wrong code generated for structure handling Initial Comment: Attached example generates wrong code using command line: sdcc -mz80 -c --max-allocs-per-node 60000 sdccerr.c See sdcc.lst: - lines 95, 95 - hl is populated by function parameter 'i' - line 104 - ldir is done with bc=4, causing hl to be incremented by 4 - lines 120-126 - structure pointed by 'i' is being populated using hl, but hl points 4 bytes forward already - changed by ldir! problem does not occur when omitting --max-allocs-per-node. SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.1 #8054 (Jul 25 2012) (Linux) ---------------------------------------------------------------------- >Comment By: Martin Matyas (mz-fuzzy) Date: 2012-08-20 16:14 Message: increasing priority as a wrong code is generated silently. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3559997&group_id=599 |