From: Uros Bizjak Date: Wed, 10 Sep 2025 06:43:53 +0000 (+0200) Subject: x86: Remove stale __GNUC_PREREQ (11, 1) test from __thread_pointer() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5222ceb73b8dbd67fc704a53d259b283f5defec;p=thirdparty%2Fglibc.git x86: Remove stale __GNUC_PREREQ (11, 1) test from __thread_pointer() GCC 12 is currently the minimum supported compiler version. Remove no longer needed __GNUC_PREREQ (11, 1) test from __thread_pointer(). Signed-off-by: Uros Bizjak Cc: H.J.Lu Cc: Florian Weimer Cc: Carlos O'Donell Reviewed-by: H.J. Lu --- diff --git a/sysdeps/x86/thread_pointer.h b/sysdeps/x86/thread_pointer.h index c1746d3fae..c694fc20a2 100644 --- a/sysdeps/x86/thread_pointer.h +++ b/sysdeps/x86/thread_pointer.h @@ -24,17 +24,7 @@ static inline void * __thread_pointer (void) { -#if __GNUC_PREREQ (11, 1) return __builtin_thread_pointer (); -#else - void *__result; -# ifdef __x86_64__ - __asm__ ("mov %%fs:0, %0" : "=r" (__result)); -# else - __asm__ ("mov %%gs:0, %0" : "=r" (__result)); -# endif - return __result; -#endif /* !GCC 11 */ } #endif /* _SYS_THREAD_POINTER_H */