Bug 505034 - Compiling Nativei386.cpp on MinGW fails because of different syntax of inline asm. r=graydon

This commit is contained in:
Jacek Caban 2010-01-18 15:08:30 -05:00
parent a6baa84f77
commit 8991f44a3c

View File

@ -312,7 +312,7 @@ namespace nanojit
{ {
Register r; Register r;
RegAlloc &regs = _allocator; RegAlloc &regs = _allocator;
#ifdef WIN32 #ifdef _MSC_VER
_asm _asm
{ {
mov ecx, regs mov ecx, regs
@ -326,7 +326,7 @@ namespace nanojit
"btr %%eax, %2\n\t" "btr %%eax, %2\n\t"
"movl %%eax, %0\n\t" "movl %%eax, %0\n\t"
: "=m"(r) : "m"(set), "m"(regs.free) : "%eax", "memory" ); : "=m"(r) : "m"(set), "m"(regs.free) : "%eax", "memory" );
#endif /* WIN32 */ #endif /* _MSC_VER */
return r; return r;
} }