summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-14 00:34:21 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-14 00:34:21 +0000
commit0c5d3ed9edd070ad4bf192037ac6206a86e5b118 (patch)
tree6687581d984ac031566a4ed23011327e9067e076 /nptl
parentbf8a28772207f35a7da8c91d0ee1598cb8f19a98 (diff)
downloadglibc-0c5d3ed9edd070ad4bf192037ac6206a86e5b118.tar.gz
glibc-0c5d3ed9edd070ad4bf192037ac6206a86e5b118.tar.xz
glibc-0c5d3ed9edd070ad4bf192037ac6206a86e5b118.zip
(CFLAGS-pthread_self.c): New definition.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index f181b4e8d9..487e58ac33 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -202,6 +202,11 @@ $(inst_libdir)/libpthread.so: $(common-objpfx)format.lds \
 $(inst_libdir)/libpthread_nonshared.a: $(objpfx)libpthread_nonshared.a
 	$(do-install)
 
+# 'pthread_self' is a simple memory or register load.  Setting up the
+# stack frame is more work than the actual operation.  Disable the
+# frame creation entirely.  This will help applications which call the
+# function frequently to get a thread-specific handle.
+CFLAGS-pthread_self.c += -fomit-frame-pointer
 
 CFLAGS-tst-unload.c += -DPREFIX=\"$(objpfx)\"