While tracing a buffer overflow apparently caused by
sdcc generating wrong code, I got this:
crunch2:/usr/share/sdcc/lib/src# sdcc --xstack
--no-peep --nolabelopt --noinduction --noloopreverse
--i-code-in-asm --model-large -c time.c
time.c:84: warning: unreachable code time.c(72)
time.c:84: warning: unreachable code time.c(74)
time.c:84: warning: unreachable code time.c(76)
time.c:84: warning: unreachable code time.c(78)
time.c:84: warning: unreachable code time.c(82)
time.c:94: error: FATAL Compiler Internal Error in file
'gen.c' line number '256' : getFreePtr should never
reach here
Contact Author with source code
crunch2:/usr/share/sdcc/lib/src# sdcc --version
SDCC :
mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400/hc08
2.3.5 (Nov 19 2003) (UNIX)
crunch2:/usr/share/sdcc/lib/src#
Logged In: YES
user_id=635249
Fixed in src/mcs51/ralloc.c 1.120 and src/ds390/ralloc.c 1.91