From patchwork Sat Nov 15 21:01:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 124410 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7FF533858C66 for ; Sat, 15 Nov 2025 21:02:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FF533858C66 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (domu-toccata.ens-lyon.fr [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 9FFB83858C39 for ; Sat, 15 Nov 2025 21:01:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9FFB83858C39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bounce.ens-lyon.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9FFB83858C39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=140.77.166.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763240512; cv=none; b=htfAy2dRW2yun8DccWq6XOkCQApURkZfDpkV7TufG0ocUjMR+2rAHPyr4HplBB2waywL6xXd6hM+fZrCYDn0McyTJ//ptK1aDkj5Pe9LAkC6yYrmpDuSFwjv36L+YAgs3Y2VeEBZbctgU10ABob/0RPXyOAOYzu298tX16jjeRg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763240512; c=relaxed/simple; bh=u+FdqzlatyI6i4xXv4352lrNiFldgUAUHkE7pwSp0gY=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=QyiQbiOq7a2DEdOmopDk6BJxJJl8cp4ggh0kY5Vu5ZtqaLGFXIL0nZGWxhSUTHZanf0QBh2Y9YRI28PYnU1n42Na280k94C8nNw96jGfITo326Qw4b/fvlJ1f2T+WKlyLxRBNXI78avnp+qSckZeA6M6YhN+yLQ72BkM757WiEs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FFB83858C39 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 65135A1A3E; Sat, 15 Nov 2025 22:01:51 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eCa3K0iRBzwR; Sat, 15 Nov 2025 22:01:51 +0100 (CET) Received: from end (aamiens-653-1-40-48.w83-192.abo.wanadoo.fr [83.192.199.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 48886A05E8; Sat, 15 Nov 2025 22:01:51 +0100 (CET) Received: from samy by end with local (Exim 4.98.2) (envelope-from ) id 1vKNP4-00000006KJK-2sNN; Sat, 15 Nov 2025 22:01:50 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] Remove TLS_TCB_ALIGN and TLS_INIT_TCB_ALIGN Date: Sat, 15 Nov 2025 22:01:50 +0100 Message-ID: <20251115210150.1508035-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.51.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org 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 | 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. */