diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2025-08-17 17:50:46 +0200 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-20 11:48:20 -0700 |
commit | f6dd43d5f7f87b847276ce69284c54b0903be949 (patch) | |
tree | 7d3eed0c2481f8cc2c694cb6f77a5eafff031d57 | |
parent | f80dddbe291b23b6851b22f734e2c421a4f9a4bc (diff) | |
download | glibc-f6dd43d5f7f87b847276ce69284c54b0903be949.zip glibc-f6dd43d5f7f87b847276ce69284c54b0903be949.tar.gz glibc-f6dd43d5f7f87b847276ce69284c54b0903be949.tar.bz2 |
i386: Remove stalled __GNUC_PREREQ (6, 0) test in THREAD_SELF()
Currenty GCC-12 is required as the minimum supported compiler
version. Remove stalled __GNUC_PREREQ (6, 0) test for
GCC compiler version in THREAD_SELF() macro definition.
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/i386/nptl/tls.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sysdeps/i386/nptl/tls.h b/sysdeps/i386/nptl/tls.h index 01eaa65..d01bc3a 100644 --- a/sysdeps/i386/nptl/tls.h +++ b/sysdeps/i386/nptl/tls.h @@ -221,22 +221,9 @@ tls_fill_user_desc (union user_desc_init *desc, THREAD_GETMEM (__pd, header.dtv); }) -/* Return the thread descriptor for the current thread. - - The contained asm must *not* be marked volatile since otherwise - assignments like - pthread_descr self = thread_self(); - do not get optimized away. */ -# if __GNUC_PREREQ (6, 0) +/* Return the thread descriptor for the current thread. */ # define THREAD_SELF \ (*(struct pthread *__seg_gs *) offsetof (struct pthread, header.self)) -# else -# define THREAD_SELF \ - ({ struct pthread *__self; \ - asm ("movl %%gs:%c1,%0" : "=r" (__self) \ - : "i" (offsetof (struct pthread, header.self))); \ - __self;}) -# endif /* Magic for libthread_db to know how to do THREAD_SELF. */ # define DB_THREAD_SELF \ |