From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9778 invoked by alias); 18 Sep 2017 20:10:05 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 8988 invoked by uid 89); 18 Sep 2017 20:10:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:U*simon, wright, H*M:4A7C, alteration X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Sep 2017 20:10:00 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1du2Mf-0000rj-8G from Iain_Sandoe@mentor.com ; Mon, 18 Sep 2017 13:09:57 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Mon, 18 Sep 2017 21:09:53 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] PR target/80556 From: Iain Sandoe In-Reply-To: <8DF8CB89-6147-4E03-9507-851BFAF0F105@pushface.org> Date: Mon, 18 Sep 2017 20:10:00 -0000 CC: Content-Transfer-Encoding: quoted-printable Message-ID: <0505A96C-0C2F-4A7C-8CEC-68BCC11DA169@codesourcery.com> References: <9BD5550D-1CBC-4A8C-80DE-61BE01001EE6@pushface.org> <9f55384a-72e2-c1b3-6f7a-c3a2ee7be978@redhat.com> <8DF8CB89-6147-4E03-9507-851BFAF0F105@pushface.org> To: Simon Wright X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) X-SW-Source: 2017-09/txt/msg01199.txt.bz2 Hi Simon, > On 29 Jun 2017, at 21:41, Simon Wright wrote: >=20 > On 28 Jun 2017, at 18:40, Jeff Law wrote: >>=20 >> On 06/09/2017 07:57 AM, Simon Wright wrote: >>> 2017-06-09 Simon Wright >>>=20 >>> PR target/80556 >>> * configure.ac (stage1_ldflags): For Darwin, include -lSystem. >>> (poststage1_ldflags): likewise. >>> * configure: regenerated. >> I'm a bit confused here. Isn't -lSystem included in darwin's LIB_SPEC >> in which case the right things ought to already be happening, shouldn't = it? >=20 > The specs that involve -lSystem are > I've rebuilt gcc-8-20170528 with this change alone (i.e. not the patch cu= rrently posted here), successfully. >=20 > If I propose this alternative patch, should it be a new post, or should I= continue this thread? thanks for the patch. The basic idea seems sound - as a workaround (as noted in comment #20 in th= e PR, we should really rationalise the libgcc/crts stuff to reflect the mod= ern world, but these things take time...). The patch as you have it would apply to every version of Darwin. AFAICT from the published sources, i386 Darwin should be able to work with = the libgcc unwinder (and all earlier Darwin *have* to) - so I=E2=80=99ve p= roposed a modified patch in the PR that makes the changes specific to m64 x= 86 and doesn=E2=80=99t make any alteration for PPC and/or Darwin < 10. HTH, Iain Iain Sandoe CodeSourcery / Mentor Embedded / Siemens