CodeSourcery 4.1-30

Rainer Hauser Rainer at waggerla.de
Mon Dec 11 00:46:25 UTC 2006


i got a error when i try to compile this file (spurios.c):
//---------------------------------------------------------


unsigned long spurious = 0;
unsigned long intc_spurious = 0;

__attribute__ ((interrupt_handler)) void spuriousISR(void)
{
   intc_spurious++;
}

__attribute__ ((interrupt_handler)) void intc_spuriousISR(void)
{
   spurious++;
}
//---------------------------------------------------------

m68k-elf-gcc -IG:\Projekte\GPP_Test -IG:\Projekte\GPP_Test\include 
-IG:\Projekte\GPP_Test\sys -O0 -g -Wall -c -fmessage-length=0 -mcpu=5213 
-fomit-frame-pointer -osys\spurious.o ..\sys\spurious.c
..\sys\spurious.c: In function 'spuriousISR':
..\sys\spurious.c:9: error: unable to find a register to spill in class 
'GENERAL_REGS'
..\sys\spurious.c:9: error: this is the insn:
(insn 8 7 9 1 ..\sys\spurious.c:8 (set (reg:SI 31 [ intc_spurious.0 ])
        (mem/c/i:SI (symbol_ref:SI ("intc_spurious") [flags 0x2] 
<var_decl 0090E108 intc_spurious>) [0 intc_spurious+0 S4 A16])) 33 
{*movsi_cf} (nil)
    (nil))
..\sys\spurious.c:9: confused by earlier errors, bailing out


any ideas?




More information about the coldfire-gnu-discuss mailing list