Re: porting GCC to a micro with a very limited addressing mode --- success with LEGITIMATE / LEGITIMIZE_ADDRESS, stuck with ICE !

2010-02-10 Thread Michael Hope
Hi Sergio. Here's the interesting parts from my port. The code's a bit funny looking as I've edited it for this post. In port.h: #define BASE_REG_CLASS ADDR_REGS #define INDEX_REG_CLASS NO_REGS #ifdef REG_OK_STRICT # define PORT_REG_OK_STRICT 1 #else # define PORT_REG_OK_STRICT 0 #endif

Re: porting GCC to a micro with a very limited addressing mode --- success with LEGITIMATE / LEGITIMIZE_ADDRESS, stuck with ICE !

2010-02-09 Thread Sergio Ruocco
Michael Hope wrote: Hi Sergio. Any luck so far? Micheal, thanks for your inquiry. I made some progress, in fact. I got the GO_IF_LEGITIMATE_ADDRESS() macro to detect correctly REG+IMM addresses, and then the LEGITIMIZE_ADDRESS() macro to force them to be pre-computed in a register. However,