]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove TLS_TCB_ALIGN and TLS_INIT_TCB_ALIGN
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Nov 2025 21:01:07 +0000 (22:01 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Nov 2025 21:01:07 +0000 (22:01 +0100)
This is the rest of 627f5ede70d7 ("Remove TLS_TCB_ALIGN and
TLS_INIT_TCB_ALIGN"), for loongarch and or1k which missed it.

sysdeps/loongarch/nptl/tls.h
sysdeps/or1k/nptl/tls.h

index 61acb6145f238b6e04f7ac2a2b2faaf91308ac17..93d718e78e7b9cea170bc130982fce590be6304a 100644 (file)
@@ -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) \
index f93fcb893bf3f93f051fc9d1a8927fb7b05bbd1b..4331bd614d9a33bc29fe6ff2cb4afb33ced94e4f 100644 (file)
@@ -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.  */