aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2025-09-10 08:43:53 +0200
committerH.J. Lu <hjl.tools@gmail.com>2025-09-10 05:30:07 -0700
commite5222ceb73b8dbd67fc704a53d259b283f5defec (patch)
tree7d5ca52bc727bf872088056ab1acccd2ced617cd
parent19442c052c40f2088e265a11daf2e3669f32ddbd (diff)
downloadglibc-e5222ceb73b8dbd67fc704a53d259b283f5defec.zip
glibc-e5222ceb73b8dbd67fc704a53d259b283f5defec.tar.gz
glibc-e5222ceb73b8dbd67fc704a53d259b283f5defec.tar.bz2
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 <ubizjak@gmail.com> Cc: H.J.Lu <hjl.tools@gmail.com> Cc: Florian Weimer <fweimer@redhat.com> Cc: Carlos O'Donell <carlos@redhat.com> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r--sysdeps/x86/thread_pointer.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/sysdeps/x86/thread_pointer.h b/sysdeps/x86/thread_pointer.h
index c1746d3..c694fc2 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 */