]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Remove stale __GNUC_PREREQ (11, 1) test from __thread_pointer()
authorUros Bizjak <ubizjak@gmail.com>
Wed, 10 Sep 2025 06:43:53 +0000 (08:43 +0200)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 10 Sep 2025 12:30:07 +0000 (05:30 -0700)
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>
sysdeps/x86/thread_pointer.h

index c1746d3fae9958314f61d998f8b3b96afd5ef0f2..c694fc20a29e66e28d3071ddb0be87e935587e23 100644 (file)
 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 */