about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-03-19 16:21:21 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-27 07:30:57 -0700
commita5128fdbc493be2ea3cc1b9a4c2312ebbb17c68c (patch)
tree277e6593d4d9058dc95f7ffc0aadba42cab375d9
parentf3b1351c5c23573e17e991ce2a2123786dba7b4c (diff)
downloadglibc-a5128fdbc493be2ea3cc1b9a4c2312ebbb17c68c.tar.gz
glibc-a5128fdbc493be2ea3cc1b9a4c2312ebbb17c68c.tar.xz
glibc-a5128fdbc493be2ea3cc1b9a4c2312ebbb17c68c.zip
Use __asm__("rsp") to get CURRENT_STACK_FRAME
Conflicts:

	nptl/ChangeLog
	nptl/sysdeps/x86_64/pthreaddef.h
-rw-r--r--nptl/sysdeps/x86_64/pthreaddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/x86_64/pthreaddef.h b/nptl/sysdeps/x86_64/pthreaddef.h
index ea5de38f7b..23da63763e 100644
--- a/nptl/sysdeps/x86_64/pthreaddef.h
+++ b/nptl/sysdeps/x86_64/pthreaddef.h
@@ -42,7 +42,7 @@
 
 /* Location of current stack frame.  The frame pointer is not usable.  */
 #define CURRENT_STACK_FRAME \
-  ({ char *frame; asm ("mov %%" RSP_LP ", %0" : "=r" (frame)); frame; })
+  ({ register char *frame __asm__("rsp"); frame; })
 
 
 /* XXX Until we have a better place keep the definitions here.  */