This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32004] [4.1/4.2/4.3 regression] : can't find a register in class 'GENERAL_REGS' while reloading 'asm'
- From: "kauer at os dot inf dot tu-dresden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jul 2007 21:51:01 -0000
- Subject: [Bug middle-end/32004] [4.1/4.2/4.3 regression] : can't find a register in class 'GENERAL_REGS' while reloading 'asm'
- References: <bug-32004-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #21 from kauer at os dot inf dot tu-dresden dot de 2007-07-04 21:50 -------
This simple testcase triggers the bug, too. Unfortunatelly I didnot test the
patch yet.
--
inline void g(int b)
{
register int reg __asm__ ("eax") = 0;
asm volatile ("nop" : "+r"(reg), "+r"(b));
}
void f(int a)
{
a /= 1000;
g(a);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32004