diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/ia32/machine-sp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/ia32/machine-sp.h b/sysdeps/ia32/machine-sp.h index 39a8b69a..cef6ab72 100644 --- a/sysdeps/ia32/machine-sp.h +++ b/sysdeps/ia32/machine-sp.h @@ -23,8 +23,7 @@ /* Return the current stack pointer. */ #define __thread_stack_pointer() ({ \ - void *__sp__; \ - __asm__ ("movl %%esp, %0" : "=r" (__sp__)); \ + register void *__sp__ asm("esp"); \ __sp__; \ }) |