loongarch: Remove TLS_TCB_ALIGN
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Nov 2025 10:26:34 +0000 (11:26 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 16 Nov 2025 10:27:47 +0000 (11:27 +0100)
This reverts a part of 9f18265a8ec8 ("Remove TLS_TCB_ALIGN and
TLS_INIT_TCB_ALIGN"), as loongarch uses this macro internally.

sysdeps/loongarch/nptl/tls.h

index 93d718e78e7b9cea170bc130982fce590be6304a..4d5e3ba3c5bc4e8ee8c40bb5c8ddff200f80e3af 100644 (file)
@@ -54,6 +54,9 @@ typedef struct
    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) \
This page took 0.088542 seconds and 5 git commands to generate.