[En-Nut-Discussion] Patch for SuSE 10.0 and gcc402
Torben Mikael Hansen
en-nut.ns at linhard.dk
Thu Nov 24 22:44:30 CET 2005
> Btw. I also recognized, that Torben changed from -Os to -O2.
> Any reason?
>
Using -Os results in the following error
avr-gcc -c -mmcu=atmega128 -Os -fno-delete-null-pointer-checks -Wall
-Werror -Wstrict-prototypes -Wno-pointer-sign -Wa,-ahlms=usart.lst
-DETHERNUT2 -D__HARVARD_ARCH__ -I/extra/ethernut-cvs/nutbld/include
-I/extra/ethernut-cvs/nut_wk/include
/extra/ethernut-cvs/nut_wk/dev/usart.c -o usart.o
/extra/ethernut-cvs/nut_wk/dev/usart.c: In function 'UsartIOCtl':
/extra/ethernut-cvs/nut_wk/dev/usart.c:832: error: unable to find a
register to spill in class 'BASE_POINTER_REGS'
/extra/ethernut-cvs/nut_wk/dev/usart.c:832: error: this is the insn:
(insn 663 162 163 14 (set (mem:HI (plus:HI (reg/f:HI 28 r28)
(const_int 1 [0x1])) [31 S2 A8])
(reg:HI 24 r24)) 12 {*movhi} (nil)
(nil))
/extra/ethernut-cvs/nut_wk/dev/usart.c:832: confused by earlier errors,
bailing out
As suggested I patched nutsetup
http://linhard.dk/ethernut/gcc4.patch
The patch also makes a Makedefs.avr-gcc4
Regards
Torben
More information about the En-Nut-Discussion
mailing list