From patchwork Sat Sep 17 23:29:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 671304 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sc7f26pH3z9t0q for ; Sun, 18 Sep 2016 09:29:28 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=b3KQGPTm; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:references:in-reply-to :content-type:mime-version; q=dns; s=default; b=U9/q+y2GDKcQ7f9q /hL7s/OUFWmmIhO4945jHEsBERPO0R76Y5CTf8gG8PMgSn3Fm2kn8KUR+LOs9Oae x7cLZkSULz1DnBDmGqgmrczx9qbATbqNKcrXHqfdgxHYisZ7kAxR/s+GGe+l8tLh PyiTgj8ahhvPVRXt46GMaiaLJFA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:references:in-reply-to :content-type:mime-version; s=default; bh=azmu4eyfLnCu35HhFRsGFe t20NA=; b=b3KQGPTmlzOZybnVOcTWvW0PqwGQZhPq2GGJoKztDWPMnbhtJihWX3 DbYwWZhAz833poAF/9ZPtNenr2VE3TB1MMDSQAZPagpmNsDDIn3evQfiLAajMMBu S+DD5VOr01lnbOA8VMl4pXrIBUa+nESBjFiA+qUx2UopcpdhUYa+k= Received: (qmail 78793 invoked by alias); 17 Sep 2016 23:29:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 78778 invoked by uid 89); 17 Sep 2016 23:29:19 -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, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hreceived-spf:domain, Hx-exchange-antispam-report-cfa-test:102415321, Hreceived-spf:discourages, Hreceived-spf:SoftFail X-HELO: BAY004-OMC2S13.hotmail.com Received: from bay004-omc2s13.hotmail.com (HELO BAY004-OMC2S13.hotmail.com) (65.54.190.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 17 Sep 2016 23:29:09 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com ([65.54.190.124]) by BAY004-OMC2S13.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 17 Sep 2016 16:29:07 -0700 Received: from VE1EUR01FT017.eop-EUR01.prod.protection.outlook.com (10.152.2.54) by VE1EUR01HT122.eop-EUR01.prod.protection.outlook.com (10.152.3.102) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.6; Sat, 17 Sep 2016 23:29:05 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com (10.152.2.57) by VE1EUR01FT017.mail.protection.outlook.com (10.152.2.226) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.6 via Frontend Transport; Sat, 17 Sep 2016 23:29:04 +0000 Received: from AM4PR0701MB2162.eurprd07.prod.outlook.com ([10.167.132.147]) by AM4PR0701MB2162.eurprd07.prod.outlook.com ([10.167.132.147]) with mapi id 15.01.0619.011; Sat, 17 Sep 2016 23:29:04 +0000 From: Bernd Edlinger To: Jan-Benedict Glaw , Matt Thomas CC: GCC Patches , Jeff Law Subject: =?utf-8?B?UmU6IFtCVUlMRFJPQk9UXSB2YXgtbmV0YnNkZWxmIC8gdmF4LWxpbnV4OiA=?= =?utf-8?B?4oCYRUxJTUlOQUJMRV9SRUdT4oCZIHdhcyBub3QgZGVjbGFyZWQgaW4gdGhp?= =?utf-8?Q?s_scope?= Date: Sat, 17 Sep 2016 23:29:04 +0000 Message-ID: References: <20160917202916.GX9642@lug-owl.de> In-Reply-To: <20160917202916.GX9642@lug-owl.de> authentication-results: spf=softfail (sender IP is 10.152.2.57) smtp.mailfrom=hotmail.de; lug-owl.de; dkim=none (message not signed) header.d=none; lug-owl.de; dmarc=none action=none header.from=hotmail.de; received-spf: SoftFail (protection.outlook.com: domain of transitioning hotmail.de discourages use of 10.152.2.57 as permitted sender) x-ms-exchange-messagesentrepresentingtype: 1 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; VE1EUR01HT122; 6:yn4l0hZ+AKoiEq8ZDX7uav2uZ3toAZHSStpXW1mgo2RLUP548g4FMYqWyV7o980zNQH2JWilFPGH2a23sdoMyJlh6yUxjdsHKgTPZt4q69LUPvtIKRE5vZMk/GzsOVIGV7KOxEiSSbyUBCwGzdCCRzcXgzK06jrBpNKJEC7UUXxAZXPYP5+g2e3jczpxjcJ0rzhlFrfw8eXnsx3ZidOt2ULA+ISXnD5D6P8jaR2wksHd6W1mYxhshGfXGvW8o3jlRn8NMMzpYQHxG+RN7xedDqi74u1PEKjm1DHIUhYkxbo=; 5:bQwwYpTpVJAQnCBWNVpI0TFv+FIr0LR2pQME+XdITiU8MZSh4ylCuoGsZwZW9mQTzz987SU/faaCs/3YqTptNT2MKiPQcplkDFQ7PGdgcKEI7gcZ3RIP/OwMxSMtRiGwfLPrJPPSeYxatkmPDixUxQ==; 24:sBAH2rgGBIbMl+gqyhr996EzhJBZbn/Dx2kpAUmc5sdDVqdzRx2WgV4Juz8h/d01vDn03Q96LnltznBoRkCzoUdi2mZaBFzni3NQBxpEDNo=; 7:nwrPVlRraSarqRWak12PiVAaJjzxOoKL5/VwQEsZ1i61EbUIsNIemVmC7QI8koQ98fDdZwIAxkXRjxVToigQFv57yZTGfTznI0c6+fyjW8ULLGVQnKOMSzPrkCHxUkpogULG3akcfYEt+QQgUeRfoGUC76PeKLdnS3jm4jqd+T56AxBvPB3dcuDxXHmXc218EshbjI4t4gO97d/sTlJYKV9AA5BnhzqX/SGRzmrs3RPXgqiSlMvbFLzwdr1YVdyHHATiXHff3DxdwYPQ31Ms2taEAdOfnIMJKxRoDt+bezyT3uGgpy3mRNjowVBVPgVo x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:VE1EUR01HT122; H:AM4PR0701MB2162.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 96ef51ce-fe5c-4736-0edc-08d3df52694a x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1601124038)(1603103081)(1601125047); SRVR:VE1EUR01HT122; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(102415321)(82015046); SRVR:VE1EUR01HT122; BCL:0; PCL:0; RULEID:; SRVR:VE1EUR01HT122; x-forefront-prvs: 0068C7E410 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Sep 2016 23:29:04.5353 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR01HT122 On 09/17/16 22:29, Jan-Benedict Glaw wrote: > On Fri, 2016-09-09 21:40:38 +0000, Bernd Edlinger wrote: >> Hi, >> >> I think it is time to remove support for INITIAL_FRAME_POINTER_OFFSET, which is no longer >> used by any target today. This removes a bunch of conditional code, and fixes a few bits >> in the documentation. I'd say that part of the documentation is quite out of sync, but I just >> have to stop somewhere. >> >> >> Bootstrapped and reg-tested on x86_64-pc-linux.gnu > > The vax backend doesn't yet define ELIMINABLE_REGS. > Oh, yes. I see. What a hack. Then we should define it. But simply returning zero for the fp to sp offset is not ok, and even if the offset is not used for register eliminations it should still be correct for rtx_addr_can_trap_p to know the safe stack frame offset ranges. I would assume a small performance improvement, when rtx_addr_can_trap_p has correct data available. How about this patch, it should at least fix the bootstrap. Is it OK for trunk? Thanks Bernd. 2016-09-17 Bernd Edlinger * config/var/vax.h (ELIMINABLE_REGS): Define. (INITIAL_ELIMINATION_OFFSET): Define. Index: gcc/config/vax/vax.h =================================================================== --- gcc/config/vax/vax.h (revision 240215) +++ gcc/config/vax/vax.h (working copy) @@ -333,6 +333,16 @@ } \ while (0) +/* This macro specifies a table of register pairs used to eliminate + unneeded registers that point into the stack frame. */ +#define ELIMINABLE_REGS {{FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM}} + +/* On the VAX, FRAME_POINTER_REQUIRED is always 1, so the definition of this + macro doesn't matter for register eliminations, but it should still + give realistic data for rtx_addr_can_trap_p. */ +#define INITIAL_ELIMINATION_OFFSET(FROM, TO, OFFSET) \ + ((OFFSET) = -get_frame_size ()) + /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function, the stack pointer does not matter. The value is tested only in functions that have frame pointers.