[Bug target/31786] [4.1/4.2/4.3 Regression][avr] error: unable to find a register to spill in class 'BASE_POINTER_REGS'

2008-01-02 Thread hutchinsonandy at netscape dot net
--- Comment #14 from hutchinsonandy at netscape dot net 2008-01-02 23:29 --- Created an attachment (id=14862) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14862&action=view) Patch to current HEAD This will patch avr.h and avr.c to allow REG_X as valid BASE_

[Bug target/31786] [4.1/4.2/4.3 Regression][avr] error: unable to find a register to spill in class 'BASE_POINTER_REGS'

2008-01-02 Thread hutchinsonandy at netscape dot net
--- Comment #13 from hutchinsonandy at netscape dot net 2008-01-02 13:36 --- Problem occurs because 1 base pointer is used for function pointer and the other is used for frame pointer. (There are only 2). Backend LEGITIMIZE_RELOAD_ADDRESS tells reload to use a base pointer for reload