This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
reload question - the compiler fails to find register to spill in a class
- From: Tomer Benyamini <Tomer dot Benyamini at ceva-dsp dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Thu, 10 Jan 2008 15:40:17 +0200
- Subject: reload question - the compiler fails to find register to spill in a class
- Accept-language: en-US
- Acceptlanguage: en-US
Hi,
I'm developing a gcc based compiler and in a certain scenario I get the following reload crash:
"error: unable to find a register to spill in class 'AB_REGS'"
I looked into it and it looks like it happens when all the AB_REGS registers are taken as function arguments, and the prefered class in a certain insn for a pseudo register is AB_REGS. This despite the fact that an alternative that includes GENERAL_REGS (r) has been chosen for that insn.
Why does reload crash and doesn't try to use other registers from GENERAL_REGS class?
What is the correct way to handle this problem?
Thanks,
Tomer