From patchwork Thu Oct 11 13:34:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 148631 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp2139047lji; Thu, 11 Oct 2018 06:38:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV60MfxUazodTYFjyLKYefg1ceaPUZhwLyHIupuWhNsnDlA03vO1MJl52zPKpV6i39wuCYZi0 X-Received: by 2002:a63:5d03:: with SMTP id r3-v6mr1485331pgb.445.1539265098764; Thu, 11 Oct 2018 06:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539265098; cv=none; d=google.com; s=arc-20160816; b=WcMDiML3Y7B7k+pwsXrhbQYsswgi3+5OXQdrFPmJzB0G4rBFpO1WT0oyFw9jIyh3P4 ozyq3y5twnay1p2StyPR4w0HXtZfOF37OBcX+/yP0OxkqSzoBDYErRTM0yz27GymSAJv qUb4WFaQbFB932H3IbE/vwLe96vCCy3EWI8zzlHNDmEALKkPnm6A+nFaRPwcwIStEDQk ZN9z4oCeRelwglyeYua4FnmX7W9iLnBhzxngpslwix3o0Eo57VqVeXatAP6PXDTk86y3 e/EECpPyo797DTQLxolL9nvrYxupmmuJ0oS0O1mRQcDto2kn93lNgMRKfTMn8keFze4b AGhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature; bh=cShBrcbkoWa/N0v3a2yQNboP2ciJrOpkjeYCkq866PA=; b=S+Isd4tcAm0hagCcBiCxc2sHpJtwuIoj4zBXCPBYt40GUisC69oK9usZyOliQ2U5yg JbrUtg3I80u8b9hehWdke9WE/bE3+1zQ4bkt7uUebl++CB04VMTVYvDMLByBI+tlV6IU IWx3xPgxCk/hxD6BWeTPrj6TocIpDC0oHhUnXvBmidSkkhi+e7Yge/9Vi3HSX5X+EhHw vVm77o+52m5S7P3TWkw20E+wFk0Cpv/tkvKKit5uOXyumYz2+u4T1BgOPzoW42hi9w+Q VvgZgA7f3rBXsuLd31t4k4AzYBPrihPeFzOxlZa9GKxqXt70/kgqk1ZGurkkTh9BaFyG uRUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=eDoeuiUJ; spf=pass (google.com: domain of gcc-patches-return-487338-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487338-patch=linaro.org@gcc.gnu.org" Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id j10-v6si2045105plg.272.2018.10.11.06.38.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 06:38:18 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-487338-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=eDoeuiUJ; spf=pass (google.com: domain of gcc-patches-return-487338-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom="gcc-patches-return-487338-patch=linaro.org@gcc.gnu.org" 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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=ksqwRfnbymIZ+1Ulr6/U3QhJIzy4GxVTwvoU9X2XCNswKY6X9EFJ2 uNCwduDH0WwAZTA/i0/dLu4iVMf+AfvEAU/6ALvnhDMJgF0usRUND56TivLFjADm rmR3EqI0B+Fzhvg9HCP6d/WibHqL+tL5gKo36G+JlHAhsupaz0qfdQ= 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:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=PJ/Oqg1T3JwFdQcPBlZXsN13sRg=; b=eDoeuiUJqqXVC/PEyc53t+SQ3hZc oVoRcTy8RBl+ZtfZJL8hJ8s3qKCAjj6+AnlqFCCOEUvFE9zVcwWTqDQX7KUj7gzK yhB4YBcinnz9gW3Ot6t0wqhkz4Gs7OBuUBDsO3f92W72p9iJqBJvottVHpsNRRGs FHB8av8lsb7kMtI= Received: (qmail 9084 invoked by alias); 11 Oct 2018 13:37:58 -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 8937 invoked by uid 89); 11 Oct 2018 13:37:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mx07-00178001.pphosted.com Received: from mx07-00178001.pphosted.com (HELO mx07-00178001.pphosted.com) (62.209.51.94) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Oct 2018 13:37:56 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9BDTGmK009441; Thu, 11 Oct 2018 15:37:54 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2mxjgy5m06-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 11 Oct 2018 15:37:54 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 952343D; Thu, 11 Oct 2018 13:37:53 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node1.st.com [10.75.127.13]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7223154E8; Thu, 11 Oct 2018 13:37:53 +0000 (GMT) Received: from gnb.st.com (10.75.127.45) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 11 Oct 2018 15:37:53 +0200 From: Christophe Lyon To: CC: Subject: [ARM/FDPIC v3 07/21] [ARM] FDPIC: Avoid saving/restoring r9 on stack since it is RO Date: Thu, 11 Oct 2018 15:34:44 +0200 Message-ID: <20181011133518.17258-8-christophe.lyon@st.com> In-Reply-To: <20181011133518.17258-1-christophe.lyon@st.com> References: <20181011133518.17258-1-christophe.lyon@st.com> MIME-Version: 1.0 X-IsSubscribed: yes 2018-XX-XX Christophe Lyon Mickaël Guêné gcc/ * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle FDPIC. (thumb1_compute_save_core_reg_mask): Likewise. -- 2.6.3 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 92ae24b..a6dce36 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -19470,7 +19470,7 @@ arm_compute_save_reg0_reg12_mask (void) /* Also save the pic base register if necessary. */ if (flag_pic - && !TARGET_SINGLE_PIC_BASE + && !TARGET_SINGLE_PIC_BASE && !TARGET_FDPIC && arm_pic_register != INVALID_REGNUM && crtl->uses_pic_offset_table) save_reg_mask |= 1 << PIC_OFFSET_TABLE_REGNUM; @@ -19504,7 +19504,7 @@ arm_compute_save_reg0_reg12_mask (void) /* If we aren't loading the PIC register, don't stack it even though it may be live. */ if (flag_pic - && !TARGET_SINGLE_PIC_BASE + && !TARGET_SINGLE_PIC_BASE && !TARGET_FDPIC && arm_pic_register != INVALID_REGNUM && (df_regs_ever_live_p (PIC_OFFSET_TABLE_REGNUM) || crtl->uses_pic_offset_table))