From patchwork Thu Oct 5 20:16:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 149022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp543450vqb; Thu, 5 Oct 2023 13:16:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5C52U3maf/XS97BnYgfjqPZLcZRlf/6/OB7pxa9B+UXy9GxjaRJ80cBlTPTBQOGAjf9PU X-Received: by 2002:a17:906:220c:b0:9b8:a556:87a5 with SMTP id s12-20020a170906220c00b009b8a55687a5mr5321216ejs.22.1696537008466; Thu, 05 Oct 2023 13:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696537008; cv=none; d=google.com; s=arc-20160816; b=tUw7E+jNKBmEG0LqPdkvGzhQ2nueau0XSTNJtY19+ewpKWWny97dOy9wyzkiVl910V NSRVafwlIY2y1MZQkQwgSIxi5Ht7Bwq/G2Q4g8LM4mm0Rf3/sR1tFdgnH1WgLXX1p+9b sEKqptSyvL1p7mvdPPu1cVydKzAStrKWBQrIBWJ5jboyVFbbgXkca/Ual55pMPLTZiFW LDf4mFVfvhQXSuSk3mV1ZyvBYRP85YtFEvMjDXB5Xae+E1I/Zhaozl5imY7Nkt191h4H PA6MGSDgWmD1GdGwQvjcG3xhLl+7inqMfApgeIKqK++/Q9/QRSggyP6yTwh6N9zrsZiT uz/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:dmarc-filter :delivered-to; bh=MDD6d7Mb1MiTTkltE3o56eBm1/K4aBsBfj3hxpDk+TE=; fh=1L2/IiukS00vgiXcKREcvt+pFBEM8GuYOng2C1a9k1k=; b=yLvgskgLOt4g997Tb3AYXro++abnJTho/70QMB0WKFYz1zt6/HGE47WHPtwHYl8oQp q0UiFYlZc2Pn4OpPW56HQx7LRMAcQJprBb+G3Sg0jfvMYphWl/2WUUc9/h85HJuyFnVf c2M8Adddtn3JV2eMGzBMXKo30r+vM4rf/TVdbUlKCkB9rhSP6z3qtBstXY8wfj4wiJeG 2mh8SVpJZtWFkSvLfwaYfuoYTSRocwMFjqHsVuev0pqfuCGdESug6DhQMq4X6eCm0idx o5F4fOMXecEcbg1qmzk5FktvxW9/rqdwT0H5e+1XY3o6UOaT87e83IKdm7e494aP0RUv 7u0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a14-20020a1709062b0e00b009ae4007b43asi941773ejg.868.2023.10.05.13.16.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 13:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6F045385697D for ; Thu, 5 Oct 2023 20:16:41 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (unknown [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 4F7E13858CDA for ; Thu, 5 Oct 2023 20:16:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F7E13858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org Received: from mx3210.localdomain (unknown [142.126.114.79]) by dellerweb.de (Postfix) with ESMTPSA id AAE001600037; Thu, 5 Oct 2023 22:16:11 +0200 (CEST) Received: by mx3210.localdomain (Postfix, from userid 1000) id 4C5BD22012C; Thu, 5 Oct 2023 20:16:09 +0000 (UTC) Date: Thu, 5 Oct 2023 20:16:08 +0000 From: John David Anglin To: GCC Patches Subject: [committed] hppa: Delete MALLOC_ABI_ALIGNMENT define from pa32-linux.h Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778947989850930192 X-GMAIL-MSGID: 1778947989850930192 In spite of what the comment says, the MALLOC_ALIGNMENT in glibc for 32-bit hppa-linux has always been 8, not 16. There is no reason to increase it as the old linux threads implementation has been removed. So, we can use default in pa.h. Dave --- Delete MALLOC_ABI_ALIGNMENT define from pa32-linux.h 2023-10-05 John David Anglin * config/pa/pa32-linux.h (MALLOC_ABI_ALIGNMENT): Delete. diff --git a/gcc/config/pa/pa32-linux.h b/gcc/config/pa/pa32-linux.h index bdd13ce492e..f48e45374f4 100644 --- a/gcc/config/pa/pa32-linux.h +++ b/gcc/config/pa/pa32-linux.h @@ -68,11 +68,6 @@ call_ ## FUNC (void) \ #undef WCHAR_TYPE_SIZE #define WCHAR_TYPE_SIZE BITS_PER_WORD -/* POSIX types such as pthread_mutex_t require 16-byte alignment to retain - layout compatibility with the original linux thread implementation. */ -#undef MALLOC_ABI_ALIGNMENT -#define MALLOC_ABI_ALIGNMENT 128 - /* Place jump tables in the text section except when generating non-PIC code. When generating non-PIC code, the relocations needed to load the address of the jump table result in a text label in the final executable