From: Felipe M. P. <fel...@ic...> - 2002-08-26 03:09:36
|
hello, i'm sorry for posting the bug without discussing it. I tried again to compile the CVS version and I can reproduce the error. I'm calling 'sdcc error.c' only. COuld it be a parser problem? When I used RedHat, line info was fine, but now I'm using Debian. There must be a program (like lex, bison, configure, etc.) which must have changed semantics. I believe this has to do with Debian. Does anybody use Debian here? Compiling program below: #include <stdio.h> int func() { error=0; /* in func, line info is wrong to me */ return 0; } /* line 9 */ int main(void) { int x; error(); /* in main, line info is correct */ and an error here! x = x+1; return 0; } /* line 22 */ felipe@felipe ~/test $ /usr/local/src/sdcc-cvs/bin/sdcc error.c error.c:9: error: Undefined identifier 'error' error.c:9: error: code not generated for 'func' due to previous errors error.c:19: parse error: token -> 'an' ; column 8 error.c:22: warning: function 'error' implicit declaration error.c:22: error: code not generated for 'main' due to previous errors error.c:22: warning: in function main unreferenced local variable : 'x' greetings, -- Felipe Massia Pereira <http://www.ic.unicamp.br/~massia> |