From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2083.outbound.protection.outlook.com [40.107.104.83]) by sourceware.org (Postfix) with ESMTPS id 660773858D39 for ; Tue, 27 Sep 2022 10:06:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 660773858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=UurAgn3Lghj11PEAiswz/LjB/jkpyjfVSlBumZaqQN3ZcWOwostde5uwlH4xy+NCgCbfw8ECmPD23bgwRvoHFVQKMw80q12YV5Pug5lRASL9YRuNIA8l/7lE970qxLs1aRgajg+hxdVMXUGLape1PPIoPxLWfPjWZ7xLhmDAl2eNf17mhRuwD+JItwVvLOOEvzuCFWC5B6pruf9FFHV1N2w/vhxI9nr+MXWcMhAtVzsC4yoqJN4RFpVYeAabcFZElyxTbgkXiwFiiUDq0gDxXPk5UFnLEoDl7m097QVyN6zdL7gey0HCE5nZ/KVTGWjiKeicshINWnJVk3W1UPZu2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ij1SwWrjdN166BsNjW1bUXLLfnNcmbaks9t9uaLOArA=; b=Hl2p7ThKUczaTRTToXW0JlNK5bVtXJL0/DVpV3qjrgpKSp9WpSKm9KfzUPsCNxj9I5YkwSfnpepkgflZlkBIaZAryPbG/QbpdEpg36+jr9G4YUWBTV3uylZrTXUtBKEXvIIkBBFzQhRscvwp5T7veDrD3aFd61+H14Dg35LgvDSPFeX/G9B7TiEyixitraONr9RGYq9ca8AejYo3ZV/V91cByVz3CZ/vGCN/iR2HX6fWZQOrX+g5X5YLnOZGZdq/LrYaRlPOM3hGspn8p1FRmPvM7Sc9hOOXJEKbKzAY7qyC9JId0O8HAJ7rCXi9r3I5ko7tnXpHRurcKNXKy8UaXQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=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=Ij1SwWrjdN166BsNjW1bUXLLfnNcmbaks9t9uaLOArA=; b=S5eU4xALSxNqCfTM6Posh/HHwT+iX/ACSPeeqZs7nhk/bNIVw+NoMJXNX5QVy2iKi6oUjUn4nqnDxcUp3lYFPYKu/vtCJSo0BwGFthd/8K/gq05sAYYw9Bu7eGJDK63jK4drUA66oH6r0Ggp991LhnKnNZPikew2Yz3ERyIdaiA= Received: from AS9PR06CA0635.eurprd06.prod.outlook.com (2603:10a6:20b:46f::7) by AM9PR08MB6033.eurprd08.prod.outlook.com (2603:10a6:20b:286::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 27 Sep 2022 10:06:10 +0000 Received: from AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:46f:cafe::df) by AS9PR06CA0635.outlook.office365.com (2603:10a6:20b:46f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.15 via Frontend Transport; Tue, 27 Sep 2022 10:06:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass 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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT064.mail.protection.outlook.com (100.127.140.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14 via Frontend Transport; Tue, 27 Sep 2022 10:06:08 +0000 Received: ("Tessian outbound 7e4a920b87c0:v128"); Tue, 27 Sep 2022 10:06:08 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b9f734079bb11e74 X-CR-MTA-TID: 64aa7808 Received: from 87a216059fdb.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6009A8F1-DFC7-469E-B9E0-6AB5FB4D8B88.1; Tue, 27 Sep 2022 10:06:00 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 87a216059fdb.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 27 Sep 2022 10:06:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RJoQazh57Qiz7uH2u+2Yvs8LX92iBodggvWNTdGyr5E3pHcIPqEcdrcfsv3FBUANaQ5i5ZdXxQi3thtkttMoWlv0vyS240/zu5J9eHiSEX91uM3E6mPteAOo20Q/ZCyqTqkny3+EvpQn4C+LXj8d6vGDoiCLB670c2hCFt1RK0rd2c6sbMwiadNI33kZzyE6euGitt0g1BjCeRnH0Xhd0j/Bh+HS1Jet2kAsfj6FSYubhZbyAnuoGUuhbCVa8WghVVxUKIeaRxlH4au3svxHLH9hyiFUn3BLyZLw0G5XI439cI3VTPUuoeRuhh5KQN0i/m+WyC9AscC6pbtGJUeGAA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ij1SwWrjdN166BsNjW1bUXLLfnNcmbaks9t9uaLOArA=; b=BIEZRDLPMHxZdEI2AlkaXfp7SfjpklTKki04NIB9SkEYTVVS/HFCnk5cT8tmWJzGXc5Lz+FuOMCraSZcOTEmghgKI+/sLMi0kPQKsBGH5n68Ggo2jOnfghsZJOykSpyPbnvflcbHPBn2pBt6ePz0b+VkvNz6c9Vgg428tG2j+nLsclcNCLYKviv4gm/0rbQjKCnY65YBuY7AtDrV75AsaOAO+t1hCrbmFErADYfO7KYupPKDjCtmrBZtH46pxrLcMod/ehoz1PqhwFDVxafDeI9ZTL5z2i3teYoLhWEHmnAx5bgcqzSN44CgzbT8EXn3MV8+AKF7drbqY1P0qgKa6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); 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=Ij1SwWrjdN166BsNjW1bUXLLfnNcmbaks9t9uaLOArA=; b=S5eU4xALSxNqCfTM6Posh/HHwT+iX/ACSPeeqZs7nhk/bNIVw+NoMJXNX5QVy2iKi6oUjUn4nqnDxcUp3lYFPYKu/vtCJSo0BwGFthd/8K/gq05sAYYw9Bu7eGJDK63jK4drUA66oH6r0Ggp991LhnKnNZPikew2Yz3ERyIdaiA= Received: from AS9PR06CA0228.eurprd06.prod.outlook.com (2603:10a6:20b:45e::20) by AS8PR08MB9041.eurprd08.prod.outlook.com (2603:10a6:20b:5b1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 27 Sep 2022 10:05:59 +0000 Received: from AM7EUR03FT046.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:45e:cafe::2a) by AS9PR06CA0228.outlook.office365.com (2603:10a6:20b:45e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26 via Frontend Transport; Tue, 27 Sep 2022 10:05:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT046.mail.protection.outlook.com (100.127.140.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5654.14 via Frontend Transport; Tue, 27 Sep 2022 10:05:58 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9; Tue, 27 Sep 2022 10:05:55 +0000 Received: from e124257 (10.34.105.24) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.9 via Frontend Transport; Tue, 27 Sep 2022 10:05:55 +0000 From: Andrea Corallo To: Kyrylo Tkachov CC: Andrea Corallo via Gcc-patches , "Richard Earnshaw" , nd Subject: Re: [PATCH 9/15] arm: Set again stack pointer as CFA reg when popping if necessary References: Date: Tue, 27 Sep 2022 12:05:55 +0200 In-Reply-To: (Kyrylo Tkachov's message of "Tue, 27 Sep 2022 09:03:25 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT046:EE_|AS8PR08MB9041:EE_|AM7EUR03FT064:EE_|AM9PR08MB6033:EE_ X-MS-Office365-Filtering-Correlation-Id: 11baacf2-f6e6-4164-071d-08daa06fe61a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Tc3jijwjuU9hIGos8Br5MLmapi4fZvjcwBgM5SHY2DEDgJIgXtxt7I5nI/O9WC9J16TPv2T4742jvSMun6VQHm0Sj9atMIQbmVu049RVIxwX9V/c4nxldC5qfGsyhdaJxCg+k8USdNBGKJgQXnaBoLCV2ZCRftr6sfWDlTlU8BQlHeR4Qb8h1GwLJaSJgWhidls5PIyJo3khDFEB+3clOHKtZI0Yz0MQj6FWYffQPeQABRWgOY0WWSntjdAF7F7HYb4afJaYI9MUWyMqZm8KWD1qUohg4I1f/Py+aUElUOH9iUcPhwayzNHYcDqIkHi1Y0feeiLGUQcuWlemWFNXpQzwjs2afF/Cdy9FBrcQ2Q3Pz24wmcnows3J4iOb0Li0jjNnIrvQpuKg737XHe5qirPvJL8vKVWJOfZmTu2AFmBfAszSvGc7TclON2HJdYDgkMarss/bGI7R+GuHoyJEkBylMUXgbJkOlF98UWw05DQLKRZMsE+r1pp2BtE4Gx36Xb+Eu33ZvO2u+9wa0KJ/CIBxA7v4iGGOkO+p+wnLj1ttW0Qh4xH0s0cE3yl3p24N6BZtd0mhC577ZFvE1j4p6Ha7Y3nJhIZ7OWXVzVceTBrm+ETH6yiu5qoD8IWsZKTXDeK/TXQXJe5hKy6t/xbwUwbhaGVuhwkijCS+ep0JrNVEGG8avDL9m8D0SvUnye+kCTqHCgw0yd1RN3L/tGvdIWHehff5gw9e59yW3RtCeXJ7WKwI+WqHxLe0bTcf1EjR0tJkQMNZlwXrlm3A+trDwSYx35xYQDRcuHimr769FdoQmbALkcB6ChEA0szdSOAj X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(346002)(376002)(136003)(39860400002)(451199015)(46966006)(40470700004)(36840700001)(86362001)(40460700003)(70586007)(5660300002)(36860700001)(356005)(81166007)(82740400003)(82310400005)(70206006)(8676002)(37006003)(4326008)(54906003)(41300700001)(6636002)(316002)(44832011)(6862004)(2906002)(47076005)(40480700001)(8936002)(2616005)(83380400001)(426003)(336012)(186003)(478600001)(53546011)(26005)(36756003)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9041 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b1ee4ed7-d37a-4308-2b75-08daa06fe02b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aKq0+YftNosQ9KuqtEXBIb++1c/+VIWAyiKnu4v/qSreRZmZ4HBnujFVY49Bih2dDJgWZvx4Ov5e8F81PQuBE8PlA5cdDRWP1zcnPemDw6+WvjkM/1WjTqdithcI13Z+KqcsBmlOsjxYF06lGpcrIHXuD1gu/mAb586usL67pkWNEQdk3Z67dTw7hx1bqXaSRzbevKv3uOkBVYOG+LNyi8YHPiFYJky2yYDMDGs6y604BPvEFDHWdO9dc16eYdIpY6TgPtEl5zepkHvgJENskuxIRLGScoK119iKsZyIeDB/9Cxykdl0md9NchhoaWZCSiuqfkUz3D7EhcRQFinN0uuUWABZeblrt3dpXCJjp9ag3qw8mwxqVHFpL77nlfdtruedBud0g+wtjJAiY5HZnGb4AuheXXBW+gX+kPNPwucvgz0iEzPb1OOVAbCehO/bjNHeeI78rgL9BgGGhFD1Ubfp9Vd3woVhT0UqZ1gSk0iTnglGAPz/b6dbHNXKK51rTVvoLwTWhmuhRU2ZUXFVqgicF8kTHKWobnTYBCK4Nv8CkrJQLhT+l09WaF8FhFH1b2t2I6yBjKNMayoRa6Ymd+8WkHll0raDdJGvtzTZbg6vLl/6RjnHWyC+vHMd0zZy7o7w8Zobnqq3ORFDCGGFTlqkU5HeaovhOPHOSKGmhEKUj+TpNevk3xIJ4bAWwXrih5uZmMHPyrKWOapK8ouadrh/nyUpblnR9+NiCnaN0j6O+RHG68gh78zz4Q3ENIesrJ4XNeBQ/Jl75tp/1oIqdQ== 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;SFS:(13230022)(4636009)(346002)(396003)(376002)(136003)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(83380400001)(40480700001)(426003)(186003)(70206006)(336012)(40460700003)(81166007)(47076005)(82310400005)(36860700001)(82740400003)(4326008)(70586007)(8676002)(2616005)(2906002)(37006003)(6636002)(54906003)(5660300002)(316002)(44832011)(6862004)(53546011)(26005)(41300700001)(8936002)(36756003)(478600001)(86362001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2022 10:06:08.8000 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11baacf2-f6e6-4164-071d-08daa06fe61a 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-AuthSource: AM7EUR03FT064.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6033 X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Kyrylo Tkachov writes: > Hi Andrea, > >> -----Original Message----- >> From: Gcc-patches > bounces+kyrylo.tkachov=arm.com@gcc.gnu.org> On Behalf Of Andrea >> Corallo via Gcc-patches >> Sent: Friday, August 12, 2022 4:34 PM >> To: Andrea Corallo via Gcc-patches >> Cc: Richard Earnshaw ; nd >> Subject: [PATCH 9/15] arm: Set again stack pointer as CFA reg when popping >> if necessary >> >> Hi all, >> >> this patch enables 'arm_emit_multi_reg_pop' to set again the stack >> pointer as CFA reg when popping if this is necessary. >> > > From what I can tell from similar functions this is correct, but could you elaborate on why this change is needed for my understanding please? > Thanks, > Kyrill Hi Kyrill, sure, if the frame pointer was set, than it is the current CFA register. If we request to adjust the current CFA register offset indicating it being SP (while it's actually FP) that is indeed not correct and the incoherence we will be detected by an assertion in the dwarf emission machinery. Best Regards Andrea