1: Sample code that reproduces the problem.
Source file is attached.
2: Exact command used to run SDCC on this sample code
sdcc -mz80 --code-loc 26000 --data-loc 0xF800 --no-std-crt0 --opt-code-size --max-allocs-per-node 1 --funsigned-char --disable-warning 85 -L z80 Basic.c
3: SDCC version tested (type "sdcc -v" to find it)
SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.4 #6849 (Sep 13 2011) (MINGW32)
It is old problem. It present in old SDCC versions, for example, in SDCC 3.0.4 #6712 (MINGW32), and also it is in new build too.
4: Copy of the error message or incorrect output, or a clear description of the observed versus expected behavior.
Basic.c:62: warning 94: comparison is always true due to limited range of data type
but real line number of warning 94 is not 62, but 70. This is a special event when number of the line shows incorrect. Though if change or remove several unessential lines, that all become it is correct.
5. My e-mail is allot [(at)] bk.ru
Log in to post a comment.