gcc bug

Nick Kurshev nick@voshod.com
Mon May 1 04:09:00 GMT 2000


Hello!

All GCC versions crashes when compiling this code

int func(int a)
{
  asm("xchgb %b0,%h0":"=S"(a):"0"(a));
  return a;
}

also it crashes when compiling this code

int func(int a)
{
  asm("xchgb %b0,%h0":"=r"(a):"0"(a));
  return a;
}

wher to "=r" assigned not GENERAL CPU386 REGISTER

Best regards! Nick





More information about the Gcc-bugs mailing list