From d5bde7babb88f0279f3ad592d585f3f954090696 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 22 Sep 2011 22:56:06 -0400 Subject: "optimize" arm __pthread_self actually this is just to avoid gcc being stupid and refusing to inline the function version, even when the size cost is essentially identical whether it's inlined or not. --- arch/arm/pthread_arch.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/pthread_arch.h b/arch/arm/pthread_arch.h index c6b97368..e607c5db 100644 --- a/arch/arm/pthread_arch.h +++ b/arch/arm/pthread_arch.h @@ -1,7 +1,4 @@ -static inline struct pthread *__pthread_self() -{ - return ((void *(*)(void))0xffff0fe0)(); -} +#define __pthread_self ((pthread_t (*)(void))0xffff0fe0) #define CANCEL_REG_SP 16 #define CANCEL_REG_IP 18 -- cgit v1.2.1