From patchwork Sun Nov 16 10:28:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 124431 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 6FB733858408 for ; Sun, 16 Nov 2025 10:28:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FB733858408 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sonata.ens-lyon.org (sonata.ens-lyon.org [140.77.166.138]) by sourceware.org (Postfix) with ESMTPS id 6A0773858408 for ; Sun, 16 Nov 2025 10:28:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A0773858408 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 6A0773858408 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=1763288893; cv=none; b=aBVkeBa+FQpg5PZWhbyT1hIN0zsH6pCGTKxGr7/oha9q6rfoAriySrcnIbozJtakX3dcd/LJcvaxWKD2MtOVH3HRrl9JokwPj1OJ+6BqYmuDfkJ0x8i+pnueUybMVe/TsQIa8xfMOrjWslIoS0YIQTkrdUi5h2rDJryfLjcv07E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763288893; c=relaxed/simple; bh=t2BAwiIS7p6IUPdf6xW6tWi82qx/Leb9DIo6qhCx8G0=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=FrAAj8Tj3Ol7qRme3i0oAIVyo47oN9bJdA/1PRrbivswzjY3IAdTccbMa5W12g/VJ/EC1rOyfyMcMzTVseds7qdrWab1oFNEggnyBoTgcGB9kORIWMpX47mCNwwJ07LU1K6hUK8LFQv/EWdDreN0Dw/PHBpx2aNXhC2Ohgd+wGM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A0773858408 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 6592AA0360; Sun, 16 Nov 2025 11:28:12 +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 SKVwraAHO4_4; Sun, 16 Nov 2025 11:28:12 +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 49938A02F6; Sun, 16 Nov 2025 11:28:12 +0100 (CET) Received: from samy by end with local (Exim 4.98.2) (envelope-from ) id 1vKZzP-00000009erD-3Z19; Sun, 16 Nov 2025 11:28:11 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [commited] loongarch: Remove TLS_TCB_ALIGN Date: Sun, 16 Nov 2025 11:28:10 +0100 Message-ID: <20251116102810.2301999-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 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/loongarch/nptl/tls.h b/sysdeps/loongarch/nptl/tls.h index 93d718e78e..4d5e3ba3c5 100644 --- a/sysdeps/loongarch/nptl/tls.h +++ b/sysdeps/loongarch/nptl/tls.h @@ -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) \