This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15482] can't find a register in class `GENERAL_REGS' while reloading `asm'
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2008 21:11:25 -0000
- Subject: [Bug rtl-optimization/15482] can't find a register in class `GENERAL_REGS' while reloading `asm'
- References: <bug-15482-6527@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from ubizjak at gmail dot com 2008-02-12 21:11 -------
(In reply to comment #4)
> I see the same problem at any level of optimization I have tried on
> i686-apple-darwin9 for the test case gcc.target/i386/asm-3.c:
>
> [ibook-dhum] f90/bug% /opt/gcc/gcc4.3w/bin/gcc -O0
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.target/i386/asm-3.c
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.target/i386/asm-3.c: In function 'main':
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.target/i386/asm-3.c:19: error: can't find
> a register in class 'GENERAL_REGS' while reloading 'asm'
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.target/i386/asm-3.c:19: error: 'asm'
> operand has impossible constraints
>
> The failure was present for rev. 130218 (see
> http://gcc.gnu.org/ml/gcc-testresults/2007-11/msg00861.html).
>
This test can't run on 32bit x86 PIC targets due to register starvation.
dg-skip-if directive was fixed to include all PIC targets with !nonpic target
selector.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15482