[glibc] Remove TLS_TCB_ALIGN and TLS_INIT_TCB_ALIGN
Samuel Thibault
sthibaul@sourceware.org
Sat Nov 15 21:01:42 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9f18265a8ec8ab8fc8f1483e99c1b2ea0df4a94c
commit 9f18265a8ec8ab8fc8f1483e99c1b2ea0df4a94c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Sat Nov 15 22:01:07 2025 +0100
Remove TLS_TCB_ALIGN and TLS_INIT_TCB_ALIGN
This is the rest of 627f5ede70d7 ("Remove TLS_TCB_ALIGN and
TLS_INIT_TCB_ALIGN"), for loongarch and or1k which missed it.
Diff:
---
sysdeps/loongarch/nptl/tls.h | 6 ------
sysdeps/or1k/nptl/tls.h | 3 ---
2 files changed, 9 deletions(-)
diff --git a/sysdeps/loongarch/nptl/tls.h b/sysdeps/loongarch/nptl/tls.h
index 61acb6145f..93d718e78e 100644
--- a/sysdeps/loongarch/nptl/tls.h
+++ b/sysdeps/loongarch/nptl/tls.h
@@ -50,16 +50,10 @@ typedef struct
pointer, we don't need this. */
#define TLS_INIT_TCB_SIZE 0
-/* Alignment requirements for the initial TCB. */
-#define TLS_INIT_TCB_ALIGN __alignof__(struct pthread)
-
/* This is the size of the TCB. Because our TCB is before the thread
pointer, we don't need this. */
#define TLS_TCB_SIZE 0
-/* Alignment requirements for the TCB. */
-#define TLS_TCB_ALIGN __alignof__(struct pthread)
-
/* This is the size we need before TCB - actually, it includes the TCB. */
#define TLS_PRE_TCB_SIZE \
(sizeof (struct pthread) \
diff --git a/sysdeps/or1k/nptl/tls.h b/sysdeps/or1k/nptl/tls.h
index f93fcb893b..4331bd614d 100644
--- a/sysdeps/or1k/nptl/tls.h
+++ b/sysdeps/or1k/nptl/tls.h
@@ -65,10 +65,7 @@ register tcbhead_t *__thread_self __asm__("r10");
/* Requirements for the TCB. */
# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t)
-# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread)
-
# define TLS_TCB_SIZE sizeof (tcbhead_t)
-# define TLS_TCB_ALIGN __alignof__ (struct pthread)
/* This is the size of the TCB. */
More information about the Glibc-cvs
mailing list