I just tried with curent sdcc 3.0.6 #6976 from trunk on Debian GNU/Linux. sdcc compiles the attached sample code without error, no matter if line 9 is commented out. I tried both the mcs51 and z80 port.
Philipp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The bug submitter supplied additional information indicating that this is a pic bug:
Supplement
Version of \"SDCC:
mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08
3.0.6 # 6979 (Oct 19 2011) (MINGW32)\" is.
Option \"-mpic14-p12F629\" is. (Chip sequence if pic14)
Below. Asm file the appropriate place.
BANKSEL instruction operand is empty
What instructions are blank +0 MOVF?
;. Line 10; \"test-stdarg.c\" fnc.buf = pb;
BANKSEL
MOVF (+ 0), W
MOVWF (_fnc + 0)
;. Line 11; \"test-stdarg.c\" return 0;
MOVLW 0x00
RETURN
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just tried with curent sdcc 3.0.6 #6976 from trunk on Debian GNU/Linux. sdcc compiles the attached sample code without error, no matter if line 9 is commented out. I tried both the mcs51 and z80 port.
Philipp
The bug submitter supplied additional information indicating that this is a pic bug:
Supplement
Version of \"SDCC:
mcs51/gbz80/z80/z180/r2k/ds390/pic16/pic14/TININative/ds400/hc08
3.0.6 # 6979 (Oct 19 2011) (MINGW32)\" is.
Option \"-mpic14-p12F629\" is. (Chip sequence if pic14)
Below. Asm file the appropriate place.
BANKSEL instruction operand is empty
What instructions are blank +0 MOVF?
;. Line 10; \"test-stdarg.c\" fnc.buf = pb;
BANKSEL
MOVF (+ 0), W
MOVWF (_fnc + 0)
;. Line 11; \"test-stdarg.c\" return 0;
MOVLW 0x00
RETURN