configure: replace -Os with equivalent based on -O2
[musl] / arch / aarch64 / pthread_arch.h
index f3c005c..3909616 100644 (file)
@@ -1,8 +1,8 @@
-static inline struct pthread *__pthread_self()
+static inline uintptr_t __get_tp()
 {
-       char *self;
-       __asm__ ("mrs %0,tpidr_el0" : "=r"(self));
-       return (void*)(self - sizeof(struct pthread));
+       uintptr_t tp;
+       __asm__ ("mrs %0,tpidr_el0" : "=r"(tp));
+       return tp;
 }
 
 #define TLS_ABOVE_TP