#2108 findLabel cannot find labels

open
nobody
5
2012-11-18
2012-11-18
Maarten Brock
No

The current implementation of findLabel() in peep.c for mcs51 tries to find labels but forgets to compensate for the trailing colon and thus cannot find any label. And when fixed SDCC generates errors when compiling the libraries. E.g.

../../bin/sdcc -I../../device/include -I../../device/include/mcs51 --model-small --nostdinc --std-c99 -c time.c -o small/time.rel
time.c:208: error 9: FATAL Compiler Internal Error in file 'peep.c' line number '555' : error in deadmove
Contact Author with source code
make[4]: *** [small/time.rel] Error 1

Discussion