This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Register Allocator Problem (was: insn does not satisfy its constraints)
- From: Boris Boesler <baembel at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 12 Nov 2007 17:36:18 +0100
- Subject: Re: Register Allocator Problem (was: insn does not satisfy its constraints)
- References: <59E6BD51-93B3-44D6-8E11-B9E66920C3E1@gmx.de> <20071002180243.GT25795@sygehus.dk> <8446A729-3C54-4049-967B-70142D16A4F4@gmx.de> <20071004135243.GU25795@sygehus.dk> <AA9CA6F9-0FCA-4C3B-AEB6-4E91A0EBD6AF@gmx.de> <20071005194838.GV25795@sygehus.dk> <AA0113F4-0F65-4D5C-8BE2-F7A36B97503D@gmx.de> <C1A3F114-8BDE-4177-8C9F-75C74A31A271@gmx.de> <m3ejg0waak.fsf@localhost.localdomain>
Hi!
Am 12.10.2007 um 18:46 schrieb Ian Lance Taylor:
Boris Boesler <baembel@gmx.de> writes:
I have a problem with the register allocator:
Welcome to reload.
http://gcc.gnu.org/wiki/reload
<cite>Reload is the GCC equivalent of Satan.</cite> Oh, yeah,
great! ;-)
The "bug" was:
enum { REG1, REG2, .. , REG96, num_first_pseudo_register };
#define FIRST_PSEUDO_REGISTER num_first_pseudo_register
This code is compiled by gcc, but the generated compiler fails
during register allocation.
The correct code is:
#define FIRST_PSEUDO_REGISTER 96
This is a little bit unexpected.
Boris