From: SourceForge.net <no...@so...> - 2003-10-04 14:20:43
|
Bugs item #817605, was opened at 2003-10-04 03:50 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=817605&group_id=599 Category: z80 port Group: None >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Paul Bartlett (paulba) Assigned to: Nobody/Anonymous (nobody) Summary: Code optimised out incorrectly Initial Comment: Hi, I'm using the Z80 port and declared some pointers to memory mapped registers. When spinning in a loop on a 'ready' bit in the port, the optimiser removed some required code. Also, the generated assembler was also incorrect in that it appears that a reference is made to a branch destination in the deleted code. I was using the April Windoze install but the problem also exists on the wavefront. Command line: sdcc -mz80 nanoprobe.c A workaround is to declare not only the pointers to the registers as volatile but also the destination varfiable itself. c source and associated assembler are attached. Best, Paul ---------------------------------------------------------------------- >Comment By: Erik Petrich (epetrich) Date: 2003-10-04 09:20 Message: Logged In: YES user_id=635249 > the problem also exists on the wavefornt. Be aware that SourceForge is delaying the anonymous cvs access by up to 24 hours or so. The bug was fixed 14 hours after your first bug report #816705 was filed. (see ChangeLog 1.444). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=817605&group_id=599 |