Message ID | 20240128140733.94198-2-iain@sandoe.co.uk |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp62665dyb; Sun, 28 Jan 2024 06:08:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpy9EYGKupzTmNa2O2hwsDxubhn0eOPNeRPHBlRgaa5UuqzpDM9QodTyt/G8mfYyPCz8jE X-Received: by 2002:a05:6214:484:b0:680:c80b:7acf with SMTP id pt4-20020a056214048400b00680c80b7acfmr4692513qvb.86.1706450915074; Sun, 28 Jan 2024 06:08:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706450915; cv=pass; d=google.com; s=arc-20160816; b=tM/ZEH90Lq7alrUKJjJjioek1iPlLUleTGqDvwnH1Y4EvZN4Dn2GPFSHoU70yUtmh9 sbbeqAQn+AY1apCuwiNEeDt5igcqrbPVmHsCHlgsv6tmt6I5FZJ1ilCDkFjEKhgx7GFq PzFDEXdCBH4PVHI10YGYmcWyRvM2yJtNc4+ZDm6HU1jm9wXREIkTJ3shkM8epDTAywGc AK4Zs7ysKOzlkYHHEWF3MiXkCT52tyuJIn9+Bi1aPCBzmz48/NGSjQ4Jh6+NfJLh5m5q gsTxQ+oNUetEbSubyzoFf1ZvzYo/3bCNzwRLg0ekFDwUq7TxHPMzf4IZ1+iaeL9FJV6V B/hg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=tIeYJe524Cc3D33YxNXFT6mjJSZKsgvYuWWkOwObQS8=; fh=K4AS3pFR26BR8zOf4IwrZlUeM0YSSQqO68Rjh5vfBKs=; b=RldtfTiH12RkpjtzX2/8a5VZijq4H0KE7y6qVOA8bW5ApLfQwS2WfrvisoXF1Sp/KU wD2NJZ6fBhsNzMBiGyYsKpZbM5Crq3BW1JixAZgG2Y09ojmp6Os+03d3j5yZawuIyOwF RqnD2od2Xo1+icgqSrdFzt/YgpC+QrLb90O8xt+zowDazdE1FA2VPb932mCbys+t3Snh fhNi0VyiHn1BwtSHEkTCHQgOfJDkq/rvQgQI7f3r8YFYAYHFV//3m2wnrh1auukePb1U FYvl/DEs04MxeDAQQ9WuCJRX/OXQZCD5F86PavJSX4kBVdXC/B0ag688moTm7qQHwZsi dnig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b84jJZk2; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c4-20020a056214224400b0068600507c19si2060391qvc.522.2024.01.28.06.08.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 06:08:35 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b84jJZk2; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7BD0138582A1 for <ouuuleilei@gmail.com>; Sun, 28 Jan 2024 14:08:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id B766E3858420 for <gcc-patches@gcc.gnu.org>; Sun, 28 Jan 2024 14:07:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B766E3858420 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B766E3858420 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::435 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706450874; cv=none; b=m9QWYP9Lf39eMHT9o8fW+k4pokjFdG84VPn+zhXmPBI9oQ5+C6pzfDGfNCywUf4SsKIVgr+UnHdlyCkFV/NGo8c/60GZDZzLgYEJAIPnoe+00x75tEL5xL6vegYV3RZ33axTvpdeAccyjEpoNmcq5ayYFmt7Z1hX2DxKoQtiItg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706450874; c=relaxed/simple; bh=dBpVJjv035DhRq7YCEOhEHjiERumfU73niW8EX7R7+c=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ANshy15J8GCaFD/zPYH2HBQNNMfNLFbgjjqDofvkQEGzJrrqdw68CvgbRYx/6A7iX8UScaqnuWcWb3dbNMsB9Kh670h25XvMJw48lUkrktt1R/e/ChGlrOv9aBEVARLAN5xssMscUHdXGKmZTjsA6s8PgvY0We6lMiofTDacH90= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-339261a6ec2so1896339f8f.0 for <gcc-patches@gcc.gnu.org>; Sun, 28 Jan 2024 06:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706450868; x=1707055668; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=tIeYJe524Cc3D33YxNXFT6mjJSZKsgvYuWWkOwObQS8=; b=b84jJZk20MdnmNaSbiuDSr9lnAmsySThQk8wj4ChcO68Y0jwrGx+2EOznfFkTlG+Dv 6aS8vwDJRedo7YNZoxhec7x1A+4jLV9xPaekJmOJLaYc6t34HD1UFbJmT0AgXNbRHj+R ogMoh973dEHDh22I5SvVmnjDdici7pYECMskCez6hLXMGUzgJaolMtxiP8/bBQBOnDtd HqTWEzbQs+ITYAUBuekJoLWLDcb58A+j61i2WWBuPJocE9gz9ELmAQID+S0U0ARXU1kA gW7A3NYcQSvR9PF+KawISx6WnTc0u1R4nZaXlismaCwjtETTnvqNYC51cgu6T1X81fpx YQfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706450868; x=1707055668; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tIeYJe524Cc3D33YxNXFT6mjJSZKsgvYuWWkOwObQS8=; b=QnLWUU+w26U6Q4heF0TDr1n4I6w6CWlyVJF9DN51fFI7Pi0VaXHCr2XVpe4egs7cri EeMuhS96kbYjABRZlrChzsxOG/IjA1VA9Z/M69IegK2LTCiqVThnQFJSvomZVXVz0unk 7UkBggd4jEa1e+qQIfbnghBlsx0usNzPzcF28dCGdcQ95JDxbsoz5mkXMn1MZBMi83nT KXTXwgNBD79wtGheMyoABb68v97Yj/kIBameBc0qMr6FVV74pxP3hDFXgzK1n2r8DZ4Q RC0O46F4uANtxMTlyUB0jVNgDwZhBA/07Lw0DoHaV47k19Ba5FqqNb4Idgfsy0ylFHig ztRQ== X-Gm-Message-State: AOJu0YzucVl88SbcqAcxjZkPTA2NUty3qm1ymz2T965Ztp5Eru8pNW3l hdq091yWWc7D6HkHpv+uo7nule82g4IhxgMl/IO/WqnwiMvdFS5vCabJbOEz X-Received: by 2002:a5d:5f48:0:b0:33a:eb59:accb with SMTP id cm8-20020a5d5f48000000b0033aeb59accbmr1296703wrb.8.1706450868494; Sun, 28 Jan 2024 06:07:48 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id d2-20020adf9c82000000b0033929310ae4sm5694734wre.73.2024.01.28.06.07.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 28 Jan 2024 06:07:48 -0800 (PST) From: Iain Sandoe <iains.gcc@gmail.com> X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: gcc-patches@gcc.gnu.org Cc: jakub@redhat.com Subject: [PATCH 1/2] libgcc: Make heap trampoline support dynamic [PR113403]. Date: Sun, 28 Jan 2024 14:07:32 +0000 Message-Id: <20240128140733.94198-2-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240128140733.94198-1-iain@sandoe.co.uk> References: <20240128140733.94198-1-iain@sandoe.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789343474167883807 X-GMAIL-MSGID: 1789343474873530838 |
Series |
libgcc: Make heap trampoline support dynamic [PR113403].
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Iain Sandoe
Jan. 28, 2024, 2:07 p.m. UTC
This removes the heap trampoline support functions from libgcc.a and adds them to libgcc_eh.a. They are also present in libgcc_s. PR libgcc/113403 libgcc/ChangeLog: * config/aarch64/t-heap-trampoline: Move the heap trampoline support functions from libgcc.a to libgcc_eh.a. * config/i386/t-heap-trampoline: Likewise. --- libgcc/config/aarch64/t-heap-trampoline | 3 ++- libgcc/config/i386/t-heap-trampoline | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-)
Comments
On Sun, Jan 28, 2024 at 02:07:32PM +0000, Iain Sandoe wrote: > This removes the heap trampoline support functions from libgcc.a and > adds them to libgcc_eh.a. They are also present in libgcc_s. > > PR libgcc/113403 > > libgcc/ChangeLog: > > * config/aarch64/t-heap-trampoline: Move the heap trampoline > support functions from libgcc.a to libgcc_eh.a. > * config/i386/t-heap-trampoline: Likewise. LGTM. I'd also default to -shared-libgcc when linking using gcc driver with the new trampoline option in options unless -static-libgcc has been used, but that can be done incrementally. > diff --git a/libgcc/config/aarch64/t-heap-trampoline b/libgcc/config/aarch64/t-heap-trampoline > index b22480800b2..6468fb8704f 100644 > --- a/libgcc/config/aarch64/t-heap-trampoline > +++ b/libgcc/config/aarch64/t-heap-trampoline > @@ -16,4 +16,5 @@ > # along with GCC; see the file COPYING3. If not see > # <http://www.gnu.org/licenses/>. > > -LIB2ADD += $(srcdir)/config/aarch64/heap-trampoline.c > +LIB2ADDEH += $(srcdir)/config/aarch64/heap-trampoline.c > +LIB2ADDEHSHARED += $(srcdir)/config/aarch64/heap-trampoline.c > diff --git a/libgcc/config/i386/t-heap-trampoline b/libgcc/config/i386/t-heap-trampoline > index 613f635b1f6..728c1e26a92 100644 > --- a/libgcc/config/i386/t-heap-trampoline > +++ b/libgcc/config/i386/t-heap-trampoline > @@ -16,4 +16,5 @@ > # along with GCC; see the file COPYING3. If not see > # <http://www.gnu.org/licenses/>. > > -LIB2ADD += $(srcdir)/config/i386/heap-trampoline.c > +LIB2ADDEH += $(srcdir)/config/i386/heap-trampoline.c > +LIB2ADDEHSHARED += $(srcdir)/config/aarch64/heap-trampoline.c > -- > 2.39.2 (Apple Git-143) Jakub
diff --git a/libgcc/config/aarch64/t-heap-trampoline b/libgcc/config/aarch64/t-heap-trampoline index b22480800b2..6468fb8704f 100644 --- a/libgcc/config/aarch64/t-heap-trampoline +++ b/libgcc/config/aarch64/t-heap-trampoline @@ -16,4 +16,5 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIB2ADD += $(srcdir)/config/aarch64/heap-trampoline.c +LIB2ADDEH += $(srcdir)/config/aarch64/heap-trampoline.c +LIB2ADDEHSHARED += $(srcdir)/config/aarch64/heap-trampoline.c diff --git a/libgcc/config/i386/t-heap-trampoline b/libgcc/config/i386/t-heap-trampoline index 613f635b1f6..728c1e26a92 100644 --- a/libgcc/config/i386/t-heap-trampoline +++ b/libgcc/config/i386/t-heap-trampoline @@ -16,4 +16,5 @@ # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>. -LIB2ADD += $(srcdir)/config/i386/heap-trampoline.c +LIB2ADDEH += $(srcdir)/config/i386/heap-trampoline.c +LIB2ADDEHSHARED += $(srcdir)/config/aarch64/heap-trampoline.c