Message ID | 20200608082514.GA17335@arm.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=EPi+vMsu; dkim=pass (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-armh-onmicrosoft-com header.b=EPi+vMsu; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49gRCR09TJz9sRR for <incoming@patchwork.ozlabs.org>; Mon, 8 Jun 2020 18:25:38 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3ADE83851C06; Mon, 8 Jun 2020 08:25:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130047.outbound.protection.outlook.com [40.107.13.47]) by sourceware.org (Postfix) with ESMTPS id 717273851C03 for <gcc-patches@gcc.gnu.org>; Mon, 8 Jun 2020 08:25:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 717273851C03 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Tamar.Christina@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+WA9g29bkoaauK6mKHkuXpAZeZlUHaooHjuFLAmMhps=; b=EPi+vMsu2Xv1Y0hxvUAcIJlCs0H4bh25Daa6rHD1cvYWeYAU0Z0dke3F3fgYbPOFdBv/1TSwVQYOABVOil5POjXRfNjE0kgeUrVM7dnbdqAW6RfXr6KqiexZpkHRXcHbFUjVdlG0VbD/pljfKwraeI5w1Jf7pQMp6IKe2N8zfTQ= Received: from DB7PR05CA0019.eurprd05.prod.outlook.com (2603:10a6:10:36::32) by AM5PR0801MB1617.eurprd08.prod.outlook.com (2603:10a6:203:39::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Mon, 8 Jun 2020 08:25:29 +0000 Received: from DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:36:cafe::27) by DB7PR05CA0019.outlook.office365.com (2603:10a6:10:36::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.19 via Frontend Transport; Mon, 8 Jun 2020 08:25:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;gcc.gnu.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT018.mail.protection.outlook.com (10.152.20.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Mon, 8 Jun 2020 08:25:29 +0000 Received: ("Tessian outbound 1145f7a293ca:v59"); Mon, 08 Jun 2020 08:25:29 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: aa04b65c873341a2 X-CR-MTA-TID: 64aa7808 Received: from d94e6333e861.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 08A7571E-F363-42DB-9630-AACB0F9D32DB.1; Mon, 08 Jun 2020 08:25:23 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id d94e6333e861.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 08 Jun 2020 08:25:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7YqzBg06ZUUQ3xDsskIPD3oulN6irabcLxWiUb1c70+zxkKXbBhg3dCc3/dVnJ0TGdhJqAgmO3GsB+DrtEwNx7t+9hirPEt2f3bT47C1b3Qq6o1cFabEVexIeWdX+iAd8gOLkzoZ4pECU07FyVMiYatDmc908mBOgBKcBdaQVQek7xSNf02jB/4t0dTdET7UBsZFAN7JpAlNA13jNMXYIXLH+bUw7T344fzqSER2pn4RhMH1ipAQZ7/Dn8r1kVB/sHuxH9xOivfMWKno6kp50Am0Dx+P2Xm08drUQTrMhi8rPS+P7+ApNz75a1nvcQhX9eKV7pdPfdHHJ230FUSdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+WA9g29bkoaauK6mKHkuXpAZeZlUHaooHjuFLAmMhps=; b=JE8DS+nXR57A8BCxLSvzlKJN1M9EHlKZzBuem8BSlXzRBQrB2kpUe2dlhKa0ioLq32K/sVeXIBWuUzaLONBsr48xhzZj3E5QJgMRBh+9NKcJFcJMlLDfPFIClm6YIC6CbBSlYchi9uSxB6UaIi7BVycltyyEr3viZIN8/Gf+l3cblZLSiIs1eCBbk2gcqtyZHNHX4Nz7Z304Qck6Wn6vYI7gAqY9SYYYCfHatYNpZPmw6uDALNo2kzInXmQ1JV3gr5TFyvMFObkY1FHjtl3OtxRV1WJ8blOoh1RQwE8K5lwe84q2P4AC4VKxpzDi+hBAGfh+quRlrR/yB47XuPRZeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+WA9g29bkoaauK6mKHkuXpAZeZlUHaooHjuFLAmMhps=; b=EPi+vMsu2Xv1Y0hxvUAcIJlCs0H4bh25Daa6rHD1cvYWeYAU0Z0dke3F3fgYbPOFdBv/1TSwVQYOABVOil5POjXRfNjE0kgeUrVM7dnbdqAW6RfXr6KqiexZpkHRXcHbFUjVdlG0VbD/pljfKwraeI5w1Jf7pQMp6IKe2N8zfTQ= Authentication-Results-Original: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) by VI1PR08MB3664.eurprd08.prod.outlook.com (2603:10a6:803:81::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18; Mon, 8 Jun 2020 08:25:21 +0000 Received: from VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9107:803e:1353:db21]) by VI1PR08MB5325.eurprd08.prod.outlook.com ([fe80::9107:803e:1353:db21%3]) with mapi id 15.20.3066.023; Mon, 8 Jun 2020 08:25:21 +0000 Date: Mon, 8 Jun 2020 09:25:19 +0100 From: Tamar Christina <tamar.christina@arm.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH][Committed][GCC][AArch64] Expand on comment of stack-clash and implicit probing through LR. Message-ID: <20200608082514.GA17335@arm.com> Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: LO2P265CA0030.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::18) To VI1PR08MB5325.eurprd08.prod.outlook.com (2603:10a6:803:13e::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.49) by LO2P265CA0030.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:61::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Mon, 8 Jun 2020 08:25:21 +0000 X-Originating-IP: [217.140.106.49] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 6fee866a-19c3-401e-2e9a-08d80b8580ee X-MS-TrafficTypeDiagnostic: VI1PR08MB3664:|AM5PR0801MB1617: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AM5PR0801MB16173AB90BAF26656CC6F65BFF850@AM5PR0801MB1617.eurprd08.prod.outlook.com> x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-Forefront-PRVS: 042857DBB5 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 86QKWvCx1XBL8EDDw4juNfN/VpOKrc0PlBKZj7iJ5g8AyUa/Itvg+nqoXsau28OYb9xvkx9vyNoj/lWq6HcNtxOuZ6xFt/qNgPVuvF/Nkymzzh6aF7ZM+0231Vy4//ZOpPVIco296hUgVch9PxEOZnP2EkJKAvoMKC1uqZpoluNXLuwVTeXr8xk6WX/Ha/9+KyUBjYRzGZy7KwNNOyOkEnMOVHAosdAKckAdxn0Osizepj8mnWjsOEVdByta0sPQt2j3cAiLayBGicYeNd0xcXv84kbGiaeWpst4ZDxuLrjAgp6ReuBlLoB8g06enosrUHLUsJ4Pz0FUZCba2iuUwEN6eMuYYE+0HKVHUHI3ALMjN1l7K+aV0ueNW7hY0fXU X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB5325.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(396003)(136003)(376002)(346002)(6916009)(478600001)(66616009)(66556008)(316002)(66476007)(16526019)(186003)(66946007)(956004)(52116002)(7696005)(33964004)(26005)(4326008)(2616005)(44144004)(44832011)(55016002)(2906002)(8886007)(235185007)(5660300002)(4743002)(36756003)(8936002)(86362001)(33656002)(1076003)(8676002)(2700100001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: GFzYQ4Ee4XwHFvPvTCx4+0t8R+RyO1MbgLACNLtr0RaRtxWXIDKEYqYPjoA5FzxtEl6e03aeEgK2ndTFSpJmIk+yAADEmPK0lqhG2psGluDCbZTLgkDDWNsD+ZhrbcpWJ2lsic3SoKiZFrsqOQtBVlLb6b6JcEqC+jC0Ix+pZTpNcaYk7xCFl8fClhYMs8wO6gaWAopQ0RUoog8cDTxcYGN5OB2pUIkDFIpeQTfkxQoskvjMS4bcrqBtB08CVClCM1LvXsv4YryDQHkZyUsRwz8JTDzAi3iRJ/p2GuBLit3fVS5Sei2CFbBiaMN5CYfdz1i/mL+qJuEed2wWtQ4hiZKLmrpAh4vnua7scifEn2m3rXwXlQXJbwxRBqzyGvKSrGaxOvdVR2vhUQpCiAbe/Hefvxoq2o+hpKNt0Bq5etwV6RTVCUuQPMNG4WCawDgbEAXBBYiZAhqfr4WwvVf3P4fXGEoGhGYVU6tZLlupz3U4Ork4d+6dSjdLmcO3suk0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3664 Original-Authentication-Results: gcc.gnu.org; dkim=none (message not signed) header.d=none;gcc.gnu.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT018.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(39860400002)(136003)(396003)(46966005)(356005)(82740400003)(5660300002)(235185007)(2906002)(44832011)(8886007)(2616005)(33964004)(44144004)(81166007)(478600001)(8936002)(956004)(86362001)(186003)(4326008)(66616009)(26005)(7696005)(8676002)(36756003)(70586007)(70206006)(1076003)(82310400002)(33656002)(55016002)(4743002)(316002)(16526019)(47076004)(336012)(6916009)(2700100001); DIR:OUT; SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 64da4e7d-cbc9-40b9-dbf2-08d80b857c06 X-Forefront-PRVS: 042857DBB5 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HItmxwglmjSAbstj2FJkYNlvzey5fIVNa6Vtr7ZgkoVhganCnw4GdxFmYuWxvJPkdKsLlowK3ICeGmAA/xv63M6vyjRf3IoTbNnphLH8EmA3IiEQb72HfsXynmn4YGl1HPtvwuc3xwh09LGS0qK8wSfgrylgHuQSujNmNMiuQUzOqnqinpaTkqZGogopOljI2Vy9fRw32jK+QPBuGYIVya9lsfYJsxJlT4Kd5Vi7WDFVwM75v25itygi44Y/97aRKqlowrvNmlSqsuy6hv3pR1bxOwjTH4Dp34Oxbw3wwTUejCDAAUs4aLpayHSVeCA7EXs7n6gRl8nVUoNlfP0AllDc53YdtXulFCe6IlCM5KaM7s02LwxHehLXhYjskpt3L2BhrK4MZvn2FCts6FjkXCLrP6iL7u2CnAKBU87zbWw= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2020 08:25:29.4514 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6fee866a-19c3-401e-2e9a-08d80b8580ee X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1617 X-Spam-Status: No, score=-18.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <http://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: <http://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Cc: Richard.Earnshaw@arm.com, nd@arm.com, Marcus.Shawcroft@arm.com Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces@gcc.gnu.org> |
Series |
[Committed,AArch64] Expand on comment of stack-clash and implicit probing through LR.
|
expand
|
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 97da60762390db81df9cffaf316b909cd1609130..973c65aa4fb348450872036617362aa17310fb20 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -6531,7 +6531,9 @@ aarch64_layout_frame (void) && !crtl->abi->clobbers_full_reg_p (regno)) frame.reg_offset[regno] = SLOT_REQUIRED; - /* With stack-clash, LR must be saved in non-leaf functions. */ + /* With stack-clash, LR must be saved in non-leaf functions. The saving of + LR counts as an implicit probe which allows us to maintain the invariant + described in the comment at expand_prologue. */ gcc_assert (crtl->is_leaf || maybe_ne (frame.reg_offset[R30_REGNUM], SLOT_NOT_REQUIRED));