]>
Commit | Line | Data |
---|---|---|
ea1548ae JR |
1 | Index: ruby1.9.1-1.9.3.484/gc.h |
2 | =================================================================== | |
3 | --- ruby1.9.1-1.9.3.484.orig/gc.h 2014-03-08 07:14:10.672333559 -0800 | |
4 | +++ ruby1.9.1-1.9.3.484/gc.h 2014-03-08 07:17:00.820079593 -0800 | |
5 | @@ -3,7 +3,11 @@ | |
6 | #define RUBY_GC_H 1 | |
7 | ||
8 | #if defined(__x86_64__) && defined(__GNUC__) && !defined(__native_client__) | |
9 | +#ifdef __ILP32__ | |
10 | +#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p))) | |
11 | +#else | |
12 | #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movq\t%%rsp, %0" : "=r" (*(p))) | |
13 | +#endif | |
14 | #elif defined(__i386) && defined(__GNUC__) && !defined(__native_client__) | |
15 | #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p))) | |
16 | #else |