summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-08-12 14:03:34 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-07 23:38:59 +0200
commitd4fb1c786dd502cee6135e0debd29a12f7746520 (patch)
tree47c38ba2786113c81e7e2f4d6de11713854dd25b /sysdeps
parent70b389f511b78e5e52a6c1a7f699dece58d8e542 (diff)
2006-03-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
* sysdeps/ia32/machine-sp.h (thread_stack_pointer): Optimize esp read.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/ia32/machine-sp.h3
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__; \
})