And the for.c is in the standard regression test of SDCC

http://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc/src/regression/for.c


I use the latest code e8919 in the svn reposit, with
configure
make all
make install



在2013年12月19 16时22分,"Ben Shi"<powerstudio1st@163.com>写道:

Sorry, the error info should be


sdcc for.c -mmcs51
for.asm:175: Error: <q> missing or improper operators, terminators, or delimiters
for.asm:179: Error: <q> missing or improper operators, terminators, or delimiters
removing for.rel



在2013年12月19 16时18分,"Ben Shi"<powerstudio1st@163.com>写道:

Hi,

I am new to SDCC and want to try it, however an error rises while trying it.
Anybody who can help me is highly appreciated.

My steps:

1. configure --prefix=/home/binshi/sdcc/build/
2. make all
3. make install
4. sdcc -v
    SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.3.2 #8915 (Dec 19 2013) (Linux)
    published under GNU General Public License (GPL)

5. compile the for.c in regression test
    sdcc for.c -mmcs51

and the error info is
sdcc for.c -mmcs51
at 1: warning 117: unknown compiler option '--debuf' ignored
for.asm:175: Error: <q> missing or improper operators, terminators, or delimiters
for.asm:179: Error: <q> missing or improper operators, terminators, or delimiters
removing for.rel

but if I remove the definition and the call of the "void done()", then the error is fixed.

What is wrong in my operation?

Thanks.

Ben Shi