This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21518] [4.0/4.1 Regression] error: unable to find a register to spill in class 'Q_REGS' with -fPIC and -O2
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2005 08:59:42 -0000
- Subject: [Bug target/21518] [4.0/4.1 Regression] error: unable to find a register to spill in class 'Q_REGS' with -fPIC and -O2
- References: <20050511195406.21518.couriousous@mandriva.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jakub at gcc dot gnu dot org 2005-05-12 08:59 -------
Using regparm(3) with -fPIC is a really bad idea. i386 has 4 Q_REGS class
registers, 3 of them are used for regparm(3) (%eax, %edx, %ecx) and the last
one for PIC pointer (%ebx), so reload really has hard time to satisfy this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21518