This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/21518] [4.0/4.1 Regression] error: unable to find a register to spill in class 'Q_REGS' with -fPIC and -O2


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]