From: SourceForge.net <no...@so...> - 2003-11-19 17:31:18
|
Bugs item #772861, was opened at 2003-07-17 04:00 Message generated for change (Settings changed) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=772861&group_id=599 Category: None Group: None Status: Open >Resolution: Accepted Priority: 5 Submitted By: Bjorge Dijkstra (zzaxxon) >Assigned to: Erik Petrich (epetrich) Summary: optimizer too optimistic, uses stale data Initial Comment: sdcc sometimes produces code that uses stale data. e.g. in the attached sample code the contents of array s1[k] is stored in a sloc. The program continues and k is changed. Another check of s1[k] uses the previously stored value at the sloc instead of getting the new value for s1[k]. 1. sample code attached (bug.c) 2. command line used to compile: sdcc -c bug.c 3. sdcc version: SDCC : mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400 2.3.5 (Jul 15 2003) (UNIX) 4. n/a 5. bj...@gm... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=772861&group_id=599 |