From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2043.outbound.protection.outlook.com [40.107.241.43]) by sourceware.org (Postfix) with ESMTPS id 90F743855177 for ; Tue, 6 Dec 2022 11:31:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 90F743855177 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=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=4cPRWdxq2odZ+TR740gesS9o80+e8y1h624D95hgEEA=; b=x6PUT9IsXLfK0d+stbds3Nqyj0BMd1lmSm73TVEcus14DuKuUqK9GXbWjFrHe7zXu0tE9pfxM40ckLCnE9UCV18d1HvtDP0zbj4/7imVoKTlF9jwiozXWyIBN0uEwAquwpULkxSJgqM9oIwzhz43gRcSVLdav9EEV2XyzKpkrKo= Received: from ZR0P278CA0095.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::10) by PAWPR08MB10166.eurprd08.prod.outlook.com (2603:10a6:102:368::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.11; Tue, 6 Dec 2022 11:31:55 +0000 Received: from VI1EUR03FT053.eop-EUR03.prod.protection.outlook.com (2603:10a6:910:23:cafe::81) by ZR0P278CA0095.outlook.office365.com (2603:10a6:910:23::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14 via Frontend Transport; Tue, 6 Dec 2022 11:31:55 +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 VI1EUR03FT053.mail.protection.outlook.com (100.127.144.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5901.14 via Frontend Transport; Tue, 6 Dec 2022 11:31:55 +0000 Received: ("Tessian outbound 6c699027a257:v130"); Tue, 06 Dec 2022 11:31:54 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a876a21cfa7460f1 X-CR-MTA-TID: 64aa7808 Received: from 82871e8eda0e.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9D144056-C4FB-4AFE-84B2-707320425CA1.1; Tue, 06 Dec 2022 11:31:45 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 82871e8eda0e.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 06 Dec 2022 11:31:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hazlPzBjCoFQluFrpX/Xyj+A+vQ8obx6WtXdwy+Vjrz6jUkUXfYR2nlOHy7nMjEwRin6g8Pmkaclaktb6kMJk8X9DuZFjTMKIG9NJuia1LrBMwt7YVXm+UAaZWLLlcDMwjN1+qs/zcMTJvrUVoSl3z4XAp0h3HGfrmUj3tFVEdOC+7eEPWzKTievynpMCrQQNCoNZAqkCDtvxLydSddzhCSIesG+3uERa4RILf4PYu9SFZTvbfMody947aSLH/9S5QTyZZ/1y5IhdCwwwFypoZ2GRmvcLTNARhYQm0BBvTnqbBpb4rZt5WFh9pS8mpCxycBrBEEbtgspbhTwIgE63w== 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=4cPRWdxq2odZ+TR740gesS9o80+e8y1h624D95hgEEA=; b=O270BUWaw0lPBPp846UH6aSchmqx450oYvVkd8d1GNefzrOCTF1nnzEHkIzcLJd4a7I3XZZQtFAMh0NSXqixSl8ZQmBwas7s2izqDhWCgCGr/ce7VRi2xa/225XAtvq47sfcomu+s+xfuaqfGdHG/Xjkgpmh9OzZrAhedEb/4fg4Lf7xfs4fOhHniB91WkGyy3U5tsL56IIvk48G7hVALT9UyUkQKR8XL2UND/5nY9ITE/YWRef7t9DV9apOwXyxWQVmVLBBrVoartpAz/zB+c5GUH0H4XyjHK2yI5OvT7NCFkEslkulQmogib4u6rGtD+srvxmIh1C3LBNqSJvIIA== 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=4cPRWdxq2odZ+TR740gesS9o80+e8y1h624D95hgEEA=; b=x6PUT9IsXLfK0d+stbds3Nqyj0BMd1lmSm73TVEcus14DuKuUqK9GXbWjFrHe7zXu0tE9pfxM40ckLCnE9UCV18d1HvtDP0zbj4/7imVoKTlF9jwiozXWyIBN0uEwAquwpULkxSJgqM9oIwzhz43gRcSVLdav9EEV2XyzKpkrKo= Received: from VE1PR08MB4893.eurprd08.prod.outlook.com (2603:10a6:802:aa::13) by AS8PR08MB6711.eurprd08.prod.outlook.com (2603:10a6:20b:351::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Tue, 6 Dec 2022 11:31:41 +0000 Received: from VE1PR08MB4893.eurprd08.prod.outlook.com ([fe80::b8b9:11b0:3e4e:cb55]) by VE1PR08MB4893.eurprd08.prod.outlook.com ([fe80::b8b9:11b0:3e4e:cb55%6]) with mapi id 15.20.5880.014; Tue, 6 Dec 2022 11:31:41 +0000 From: Srinath Parvathaneni To: "gcc-patches@gcc.gnu.org" , Richard Earnshaw CC: Srinath Parvathaneni Subject: Re: [GCC][PATCH v2] arm: Add pacbti related multilib support for armv8.1-m.main. Thread-Topic: [GCC][PATCH v2] arm: Add pacbti related multilib support for armv8.1-m.main. Thread-Index: AQHY7T7ZwOFb0Pf6iEOiRrnAo2RKdq5g8f5H Date: Tue, 6 Dec 2022 11:31:41 +0000 Message-ID: References: <32a435b2-b9c4-4b51-b1f0-d9f304ddf8c7@AZ-NEU-EX04.Arm.com> In-Reply-To: <32a435b2-b9c4-4b51-b1f0-d9f304ddf8c7@AZ-NEU-EX04.Arm.com> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-traffictypediagnostic: VE1PR08MB4893:EE_|AS8PR08MB6711:EE_|VI1EUR03FT053:EE_|PAWPR08MB10166:EE_ X-MS-Office365-Filtering-Correlation-Id: 5854826a-8db7-4fca-0215-08dad77d7a82 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: HGt7PtN10dBIrVnlt+uCVLlwnSdIUsS1qlosgKNPxPEYiJc+4Fmk1NzZD1z76F7Pb/Aj1v0ucNwVbcODyjWftyItM0O2o8QlKFy4MCf+EywKUbqZtOL51FLTpxt3I0wzd3YRTj+7TV0v8WERmIyHkgiNa/bS8QwblHzYkv4shOaQI2bW8pDIGM+NDwAJniePiKJxvbSaPSQeXW94PKkMkH+ZNsx+OiojsbXaSUi+WHa/KLtI0Qu8lZOZpHum7z/yIXOs+XU45iIWe5+41oQubRlDqDpiMecPu+NcPNDXcfyMm1W8jX6EeQ/8GzaLNn/msxqcIpF9V/PaZi9p+A8DYDeuKPvAKF0L48dMG7Yz1jLPBw+2XHUg3K726NgMzE8a6CbdngBqHYBhOKEyxjm8xAW9jDO/sZzFdM+OOFsJT7gK3hI6p7pqI1NsJsa8tQ8yErdnDE4Lj/DrgiKIHbV1gXXDA2af8kyN1oD8qmJ+3NVFsrZmU4ZR06zvxgVhGxPMHpP70IHzYqUdHHszhqs6LrndhImJba4mzpe/FEiDG82/z8BvwM7JNPRFMuhVix5/c5saNbtKQPo5tCqEwFgcFF4ViSuP0Vp/u+ylhsrfER1eQQUo0MhRn5bjvCBd7zsNI2oEDg4eLxqbXv8QG/pZeYP1G5wEXnAjiFWtTc9dnPNMRW0MmwFHTDlXsV29RmcBAPs9FXTs0WWe7uZdbZjuaIFmbKigrWzcmeueSZz6B5dMU22Y83CZc5NDw96z6mCnco0I7JCIyaT1rkyUayIwVw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR08MB4893.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(396003)(39860400002)(346002)(366004)(451199015)(4001150100001)(8936002)(122000001)(2906002)(38100700002)(84970400001)(19627405001)(83380400001)(86362001)(33656002)(38070700005)(478600001)(186003)(66556008)(41300700001)(66476007)(55016003)(64756008)(76116006)(5660300002)(66446008)(66946007)(9686003)(6636002)(91956017)(110136005)(316002)(7696005)(8676002)(26005)(6506007)(52536014)(4326008)(71200400001);DIR:OUT;SFP:1101; Content-Type: multipart/alternative; boundary="_000_VE1PR08MB4893F483B7097032CCCA194F9B1B9VE1PR08MB4893eurp_" MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6711 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VI1EUR03FT053.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b4115b71-3dc3-44a8-5276-08dad77d7269 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 87PkPeKbMa7UuRBPbxbQwUyoht4w7f42uwFY5FEK7hGjuh71ZTXd/B5lHnPTa8AD3XcbTMQCIbdHPzEp2qJb1fiWIVKWFM9DxVaazTg1bRPylC/3ct5C960tgg2acP+8Oh+MlICtZRU/AO5L4yTRfGw/DY8MzSThXqKyGJWQgigP9lH0D7kI+sIlsvP4bY7IOn4VPbr0M7UxO9eGylt89rd9VVWoKMjgmUBH5QNp0qfKHnRHK6s4PPU654GYuuIl5Wrf6z6WDvq/Foj1gpeCfMUxkAFI35+6I9ijXHk8tYSNVm4GpmKppRl+8If7Ax2FPvfsb4F7QIVOFmljqL0pcuZrQumeNa4sU92pxA6ZggEk8dcN7FbU8SxV6O4/rnZiuPWPSuVufw3YYzHyvdj5RJ79cYcavrJ8LUUuhbtTB1ZDxUa+3PcEGjKkXIoiMOxoiKLjiFgEVZxWGMVWUayFX1HSUY4R9zLasWi1nuU6aBk208S9CDN4lMfkaXamqXWp8n+uQ2GxVnSnFJ4d4xfmdFPpYIrOl4I93WQS4hqHJzDRTxtjGEhzlNswv4Rlvoe1oO6gfgA2C6o6pB11cp18awlNx9Ksm97iQ7nMXi10+aRGC1txhR1liL4MVq//yeewWo2ZXL/nCyWLABvm+ntADmrHCvw7XCSV9n01Fqhx6hM70LFB+qTX5ncTDBBwNfsKn9iijWFcsDLWQttPiCoesf6rE/1XC55lOdKqmPJBsvOpXa7Mtu3q9SdMq6WHUtuGNStO20zLft/rx4CcdgB5og== 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)(376002)(346002)(396003)(39860400002)(136003)(451199015)(36840700001)(46966006)(40470700004)(33656002)(84970400001)(2906002)(8936002)(36860700001)(82740400003)(5660300002)(52536014)(83380400001)(4001150100001)(47076005)(336012)(356005)(81166007)(40480700001)(186003)(86362001)(110136005)(6636002)(40460700003)(19627405001)(316002)(478600001)(82310400005)(55016003)(70586007)(26005)(6506007)(70206006)(4326008)(41300700001)(9686003)(7696005)(8676002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2022 11:31:55.0852 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5854826a-8db7-4fca-0215-08dad77d7a82 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: VI1EUR03FT053.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB10166 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,HTML_MESSAGE,KAM_DMARC_NONE,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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: --_000_VE1PR08MB4893F483B7097032CCCA194F9B1B9VE1PR08MB4893eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ping!! ________________________________ From: Gcc-patches on behalf of Srinath Parvathaneni via Gcc-patches Sent: 31 October 2022 15:36 To: gcc-patches@gcc.gnu.org Cc: Richard Earnshaw Subject: [GCC][PATCH v2] arm: Add pacbti related multilib support for armv8= .1-m.main. Hi, This patch adds the support for pacbti multlilib linking by making "-mbranch-protection=3Dnone" as default in the command line for all M-profi= le targets and uses "-mbranch-protection=3Dnone" for multilib matching. If any valid value is passed to "-mbranch-protection" in the command line, this new value overwrites the default value in the command line and uses "-mbranch-protection=3Dstandard" for multilib matching. Eg 1. If the passed command line flags are: a) -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard -mfpu=3Dauto b) -mcpu=3Dcortex-m85+nopacbti -mfloat-abi=3Dhard -mfpu=3Dauto After this patch the command line flags the compiler receives will be: a) -march=3Darmv8.1-m.main+mve -mfloat-abi=3Dhard -mfpu=3Dauto -mbranch-pro= tection=3Dnone b) -mcpu=3Dcortex-m85+nopacbti -mfloat-abi=3Dhard -mfpu=3Dauto -mbranch-pro= tection=3Dnone "-mbranch-protection=3Dnone" will be used in the multilib matching. Eg 2. If the passed command line flags are: a) -march=3Darmv8.1-m.main+mve+pacbti -mfloat-abi=3Dhard -mfpu=3Dauto -mbr= anch-protection=3Dpac-ret b) -mcpu=3Dcortex-m85 -mfloat-abi=3Dhard -mfpu=3Dauto -mbranch-protection= =3Dpac-ret+bti After this patch the command line flags the compiler receives will be: a) -march=3Darmv8.1-m.main+mve+pacbti -mfloat-abi=3Dhard -mfpu=3Dauto -mbra= nch-protection=3Dpac-ret b) -mcpu=3Dcortex-m85 -mfloat-abi=3Dhard -mfpu=3Dauto -mbranch-protection= =3Dpac-ret+bti "-mbranch-protection=3Dstandard" will be used in the multilib matching. Eg 3. For A-profile target, if the passed command line flags are: -march=3Darmv8-a+simd -mfloat-abi=3Dhard -mfpu=3Dauto Even after this patch the command line flags compiler receives will remain = the same: -march=3Darmv8-a+simd -mfloat-abi=3Dhard -mfpu=3Dauto Regression tested on arm-none-eabi and bootstrapped on arm-none-linux-gnuea= bihf. Ok for master? Regards, Srinath. gcc/ChangeLog: 2022-10-28 Srinath Parvathaneni * common/config/arm/arm-common.cc (arm_canon_branch_protection_option): Define new function. * config/arm/arm-cpus.in (armv8.1-m.main): Move dsp option below pa= cbti option. * config/arm/arm.h (arm_canon_branch_protection_option): Define fun= ction prototype. (CANON_BRANCH_PROTECTION_SPEC_FUNCTION): Define macro. (MBRANCH_PROTECTION_SPECS): Likewise. * config/arm/t-rmprofile (MULTI_ARCH_OPTS_RM): Add new options. (MULTI_ARCH_DIRS_RM): Add new directories. (MULTILIB_REQUIRED): Add new option. (MULTILIB_REUSE): Reuse existing multlibs. (MULTILIB_MATCHES): Match multilib strings. gcc/testsuite/ChangeLog: 2022-10-28 Srinath Parvathaneni * gcc.target/arm/multilib.exp (multilib_config "rmprofile"): Update tests. * gcc.target/arm/pac-10.c: New test. * gcc.target/arm/pac-11.c: Likewise. * gcc.target/arm/pac-12.c: Likewise. --_000_VE1PR08MB4893F483B7097032CCCA194F9B1B9VE1PR08MB4893eurp_--