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


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