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 middle-end/32004] [4.1/4.2/4.3 regression] : can't find a register in class 'GENERAL_REGS' while reloading 'asm'



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


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