Skip to content

Commit b129491

Browse files
committed
Complement to last commit
1 parent 67363d0 commit b129491

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

platforms/Cross/plugins/IA32ABI/ia32abicc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

platforms/Cross/plugins/IA32ABI/ppc32abicc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ struct VirtualMachine* interpreterProxy;
9292
# define alloca _alloca
9393
#endif
9494
#if __GNUC__
95-
//# define setsp(sp) asm volatile ("movl %0,%%esp" : : "memory"(sp))
96-
//# define getsp(sp) asm volatile ("movl %%esp,%0" : "=r"(sp) : )
95+
//# define setsp(sp) __asm__ volatile ("movl %0,%%esp" : : "memory"(sp))
96+
//# define getsp(sp) __asm__ volatile ("movl %%esp,%0" : "=r"(sp) : )
9797
#endif
9898
# define STACK_ALIGN_BYTES 16
9999

100100
#if !defined(setsp)
101-
# define setsp(ignored) asm volatile ("stwu r1,12(r1)\n")
101+
# define setsp(ignored) __asm__ volatile ("stwu r1,12(r1)\n")
102102
#endif
103103

104104
#define moduloPOT(m,v) ((v)+(m)-1 & ~((m)-1))
@@ -245,7 +245,7 @@ thunkEntry(void *thunkp, sqIntptr_t *stackp)
245245
_asm mov edx, dword ptr vhigh;
246246
#elif __GNUC__
247247
#warning ASSEMBLER
248-
//asm("mov %0,%%edx" : : "m"(vhigh));
248+
//__asm__("mov %0,%%edx" : : "m"(vhigh));
249249
#else
250250
# error need to load edx with rs->rvs.valint64.high on this compiler
251251
#endif
@@ -258,7 +258,7 @@ thunkEntry(void *thunkp, sqIntptr_t *stackp)
258258
_asm fld qword ptr valflt64;
259259
#elif __GNUC__
260260
#warning ASSEMBLER
261-
// asm("fldl %0" : : "m"(valflt64));
261+
// __asm__("fldl %0" : : "m"(valflt64));
262262
#else
263263
# error need to load %f0 with rs->rvs.valflt64 on this compiler
264264
#endif

0 commit comments

Comments
 (0)