This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc bug
- To: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
- Subject: gcc bug
- From: "Nick Kurshev" <nick at voshod dot com>
- Date: Mon, 01 May 2000 15:11:52 +0000 (:)
- Reply-To: "Nick Kurshev" <nick at voshod dot com>
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