@@ -53,8 +53,8 @@ struct VirtualMachine* interpreterProxy;
5353# define alloca _alloca
5454#endif
5555#if __GNUC__
56- # define setsp (sp ) asm volatile ("movl %0,%%esp" : : "m"(sp))
57- # define getsp () ({ void *sp; asm volatile ("movl %%esp,%0" : "=r"(sp) : ); sp;})
56+ # define setsp (sp ) __asm__ volatile ("movl %0,%%esp" : : "m"(sp))
57+ # define getsp () ({ void *sp; __asm__ volatile ("movl %%esp,%0" : "=r"(sp) : ); sp;})
5858#endif
5959#if __APPLE__ && __MACH__ && __i386__
6060# define STACK_ALIGN_BYTES 16
@@ -183,7 +183,7 @@ thunkEntry(void *thunkp, sqIntptr_t *stackp)
183183# if _MSC_VER
184184 _asm sub esp , dword ptr offset ;
185185# elif __GNUC__
186- asm ("sub %0,%%esp" : : "m" (offset ));
186+ __asm__ ("sub %0,%%esp" : : "m" (offset ));
187187# else
188188# error need to subtract offset from esp
189189# endif
@@ -223,7 +223,7 @@ thunkEntry(void *thunkp, sqIntptr_t *stackp)
223223#if _MSC_VER
224224 _asm mov edx , dword ptr vhigh ;
225225#elif __GNUC__
226- asm ("mov %0,%%edx" : : "m" (vhigh ));
226+ __asm__ ("mov %0,%%edx" : : "m" (vhigh ));
227227#else
228228# error need to load edx with vmcc.rvs.valleint64.high on this compiler
229229#endif
@@ -235,7 +235,7 @@ thunkEntry(void *thunkp, sqIntptr_t *stackp)
235235#if _MSC_VER
236236 _asm fld qword ptr valflt64 ;
237237#elif __GNUC__
238- asm ("fldl %0" : : "m" (valflt64 ));
238+ __asm__ ("fldl %0" : : "m" (valflt64 ));
239239#else
240240# error need to load %f0 with vmcc.rvs.valflt64 on this compiler
241241#endif
0 commit comments