From d4fb1c786dd502cee6135e0debd29a12f7746520 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 12 Aug 2008 14:03:34 +0000 Subject: 2006-03-04 Samuel Thibault * sysdeps/ia32/machine-sp.h (thread_stack_pointer): Optimize esp read. --- sysdeps/ia32/machine-sp.h | 3 +-- 1 file changed, 1 insertion(+), 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__; \ }) -- cgit v1.2.3