From: SourceForge.net <no...@so...> - 2011-09-13 14:17:56
|
Bugs item #3408654, was opened at 2011-09-13 17:17 Message generated for change (Tracker Item Submitted) made by oleg-n-cher You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3408654&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Oleg N. Cher (oleg-n-cher) Assigned to: Nobody/Anonymous (nobody) Summary: SDCC shows wrong line number in warning 94 Initial Comment: 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. Compiler shows: 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3408654&group_id=599 |