From patchwork Fri May 25 08:03:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 136799 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3286189lji; Fri, 25 May 2018 01:27:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoy3CLp62mDXELgV1f1m3cJsUHCg195V4SKwEzyoCPzf8mdwaUvtS7LJy2ROjd7WjwlOux3 X-Received: by 2002:a65:40cd:: with SMTP id u13-v6mr1229895pgp.372.1527236878215; Fri, 25 May 2018 01:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527236878; cv=none; d=google.com; s=arc-20160816; b=y+Cvu+h4aFrsigQXtOT3pz/lnAEsDUqh4XKK33F4XAMXqXHB4syyyC+YxSSV3dhfsM 72LfkRRr6C4fVoU8/fZOrrPef/VbiTdwAgbkKkLwM5bBn9sDl4zKcGEBA3qKCp06We4C 26L8q6jbyQ0Feyuyk3C00Inov9JxHTWJijVYkw/tQxTApJ4uT5xL5s95uvwE4O65kQIs ZaQJJ37xLy756P0VOXByJTMK2i9soo8Uuy18opFHiCFLMWsdGoUdFVPJdujHhW7z7981 Vgwa1rrXXfgye3gKEs1wiqL4CuR0GOFZhVBwB45v+CT/q4PUtrEEnmG54jWTJ2TMRdRA 2W6g== 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:to:from:delivered-to:sender:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=trfXcmzinjVzFdBP9zKZP48wT/ThDpD3XJlBZoG5PK8=; b=WmKJlueup1KjY4N8exeXPFj7G69kpZ3BsVDNCsQxJYkayKvuflAOzCuwOZIcSqfc4l WmhxHwDP0QrCxftE2rpZYo0Z9jHBNtox1i2NF7PdGQD7XiHXHnN8rZbSaziUjk+JEfk7 /QJdR43eOBe72fNu+b8vh0kt9t7cD07OtVpfC4ANOzq5NGr+dorMv0wTgByxbdbZ5aeP YULiE/kGRV5vcVafN0gfvSCf8IdAYPint9fcCguK6Qu/9VrEWROKCKkQU5ZxTm/b0GZ2 WC8eJBEQfj71vF6jfqz0xQPb483BZUgRA4U2z/khP9Ntr7LnKNlzMUGq3oyMfOQhpnto Q6xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Zm2mSx0N; spf=pass (google.com: domain of gcc-patches-return-478466-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478466-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 c83-v6si1052984pfl.319.2018.05.25.01.27.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 01:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-478466-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=Zm2mSx0N; spf=pass (google.com: domain of gcc-patches-return-478466-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-478466-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:subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=avy gQRbJiW/omW5+9bgcEbSgLMa4lLQILUXJgQ5GacH2FQlwVJ/XBwcGnT4hpo9IShU HeCkVMtN5txhOuMny2YrmCN9vaiGlZxRvo6eAPKVIuyCMJvZOfLngzPE8Lvm5bxg srMZdJ973i1QNnoHgMn6I/TrLDxc7pEzMcbAdZcY= 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:subject:date:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=default; bh=k/OaXqzAi OIfHWyTkfRkcLxZtvg=; b=Zm2mSx0NJmKhruDmE2vizMy73YDtQzl2M7Cnw6fE3 VuwHwRrycUj3jtZLFcA9WElbUVlk6aS1Cl4cNZhXU6ysa/uG2QGcNmIRwp0fr+jk q8noqOcWAFkeUrFU04cUufa2Gc3UWJh/P0tVCcaHzUv2rftse28bf4QQwRJoQItl 7Q= Received: (qmail 44572 invoked by alias); 25 May 2018 08:08:24 -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 43290 invoked by uid 89); 25 May 2018 08:06:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No 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=sk:df_regs, 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; Fri, 25 May 2018 08:06:34 +0000 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4P7xTIB028805; Fri, 25 May 2018 10:06:32 +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 2j5tt2nw8p-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 25 May 2018 10:06:32 +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 8B19234; Fri, 25 May 2018 08:06:31 +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 72B5F2409; Fri, 25 May 2018 08:06:31 +0000 (GMT) Received: from gnb.st.com (10.75.127.51) by SFHDAG5NODE1.st.com (10.75.127.13) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 25 May 2018 10:06:30 +0200 From: Christophe Lyon To: , Subject: [ARM/FDPIC 07/21] [ARM] FDPIC: Avoid saving/restoring r9 on stack since it is RO Date: Fri, 25 May 2018 10:03:20 +0200 Message-ID: <20180525080354.13295-8-christophe.lyon@st.com> In-Reply-To: <20180525080354.13295-1-christophe.lyon@st.com> References: <20180525080354.13295-1-christophe.lyon@st.com> MIME-Version: 1.0 X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG5NODE1.st.com (10.75.127.13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-25_03:, , signatures=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. Change-Id: Ib534cf91704cdc740867b46a8fe45fda27894562 -- 2.6.3 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 56670e3..bbf8884 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -19489,7 +19489,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; @@ -19523,7 +19523,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)) @@ -19692,7 +19692,7 @@ thumb1_compute_save_core_reg_mask (void) mask |= 1 << HARD_FRAME_POINTER_REGNUM; if (flag_pic - && !TARGET_SINGLE_PIC_BASE + && !TARGET_SINGLE_PIC_BASE && !TARGET_FDPIC && arm_pic_register != INVALID_REGNUM && crtl->uses_pic_offset_table) mask |= 1 << PIC_OFFSET_TABLE_REGNUM;