From 0c5d3ed9edd070ad4bf192037ac6206a86e5b118 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 14 Jan 2003 00:34:21 +0000 Subject: [PATCH] (CFLAGS-pthread_self.c): New definition. --- nptl/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nptl/Makefile b/nptl/Makefile index f181b4e..487e58a 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)\" -- 2.7.4