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: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2007 12:08:11 -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 #23 from bonzini at gnu dot org 2007-07-06 12:08 -------
In particular, this one could be rewritten to
inline void g(int b)
{
register int reg = 0;
asm volatile ("nop" : "+a"(reg), "+r"(b));
}
void f(int a)
{
a /= 1000;
g(a);
}
but the one in PR21291 could not.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32004