This issue has been brought to my attention via email.
Compiling tha attached file via
sdcc hd44780.c --verbose -lstm8 -mstm8 --opt-code-size --i-code-in-asm --max-allocs-per-node 30 -ohd44780.hex
apparently results in
hd44780.c:267: warning 217: Non-fatal Compiler Internal Problem in file 'SDCClrange.c' line number '1018' : Definition not found
Philipp
This is likely fixed by my recent changes, but I cannot compile hd44708.c due to missing STM8S103F3.h
I cannot reproduce the issue using current SDCC 4.0.2 [r11667].
For the missing STM8S103F3.h I used stm8s.h from https://github.com/eeyrw/MusicBox-STM8/blob/master/stm8/stm8s.h