Hello all,
I get a weird compiler error:
clktsk.c: In function 'main': clktsk.c:2934:1: error: unable to find a register to spill in class 'POINTER_REGS' clktsk.c:2934:1: error: this is the insn: (insn 3102 796 3103 64 (set (reg:QI 26 r26) (reg:QI 890)) clktsk.c:2066 28 {movqi_insn} (nil)) clktsk.c:2934: confused by earlier errors, bailing out
avr-gcc is version 4.7.2; command line was as follows:
/usr/bin/avr-gcc -g -c -DGCCAVR -DHDWFIL=\"clkhdw.h\" -I/usr/avr/include/avr -funsigned-bitfields -DDEBUG -O1 -mrelax -fno-caller-saves -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -gstrict-dwarf -Wall -DMEG -mmcu=atmega1284p -DLTTEND -DSTRLEN=64 -DNSTMAX=6 -DTSTRS2 -DTSTCTL=1 -DTSTBDR=38400 -DERHCTL=TSTCTL -DERHBDR=TSTBDR -DTST -c -std=gnu99 -o clktsk.o clktsk.c
I saw that other people in the forum got this error before but I could not find a workaround. -fno-caller-saves seems to have worked for some (didn't work for me though) and I cannot change optimisation level (-O1).
Any other suggestions what I can try?
Or can somebody explain what may be confusing the compiler?
Kind Regards,
Hagen