diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/ia32/machine-sp.h | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2006-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * sysdeps/ia32/machine-sp.h (thread_stack_pointer): + Optimize esp read. + 2008-08-12 Neal H. Walfield <neal@gnu.org> * sysdeps/generic/pt-startup.c (__pthread_startup): New file. diff --git a/sysdeps/ia32/machine-sp.h b/sysdeps/ia32/machine-sp.h index 39a8b69..cef6ab7 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__; \ }) |