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]

gcc bug


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




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