From patchwork Mon Feb 6 14:47:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Corallo X-Patchwork-Id: 53326 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2275588wrn; Mon, 6 Feb 2023 06:49:30 -0800 (PST) X-Google-Smtp-Source: AK7set+qEgPZzNQSsTjOxCEZrkHpfVyoY80elHepdrUH19pzNB6hy+HjbdOMv7If/yJRRSxYl0D0 X-Received: by 2002:a17:906:9610:b0:881:a3ec:2b40 with SMTP id s16-20020a170906961000b00881a3ec2b40mr22196043ejx.59.1675694970566; Mon, 06 Feb 2023 06:49:30 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 27-20020a17090601db00b008779b708a5bsi16601418ejj.288.2023.02.06.06.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 06:49:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=jNIL4nyI; arc=fail (signature failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 40F103858D1E for ; Mon, 6 Feb 2023 14:49:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 40F103858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675694969; bh=nQ6oGdaMJv5E/rQ1xqdlafSDixVcz9occtrrLGfoLtI=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=jNIL4nyIM9ZovPHExXwy1nwle7OOKH08TxagfIO/Do3a0smxFDTGFKb6WclX7U9IX qN6zHVzEh72N2BhcZmqw7vhAdbzKcXOae7gidoqiCmX2qTpwuGhtiU0jgnEK1CJO8v j370pTbDxYyBG6OIOpZcVIK7/BAbOzPmcdWuKjZM= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2060.outbound.protection.outlook.com [40.107.104.60]) by sourceware.org (Postfix) with ESMTPS id 196223858D1E for ; Mon, 6 Feb 2023 14:48:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 196223858D1E Received: from DU2PR04CA0027.eurprd04.prod.outlook.com (2603:10a6:10:3b::32) by DU0PR08MB7663.eurprd08.prod.outlook.com (2603:10a6:10:319::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.31; Mon, 6 Feb 2023 14:48:38 +0000 Received: from DBAEUR03FT063.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:3b:cafe::a4) by DU2PR04CA0027.outlook.office365.com (2603:10a6:10:3b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34 via Frontend Transport; Mon, 6 Feb 2023 14:48:37 +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 DBAEUR03FT063.mail.protection.outlook.com (100.127.142.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.35 via Frontend Transport; Mon, 6 Feb 2023 14:48:37 +0000 Received: ("Tessian outbound baf1b7a96f25:v132"); Mon, 06 Feb 2023 14:48:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 30b7255652ba78db X-CR-MTA-TID: 64aa7808 Received: from 275e1f18146c.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 619EC94A-432E-4FFC-8BA8-E0E618865D83.1; Mon, 06 Feb 2023 14:48:11 +0000 Received: from EUR02-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 275e1f18146c.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 06 Feb 2023 14:48:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WuwlySXgm/pTMpRpFg484d2IPb2orhr4ABSaC0yWPC4LIo757phieFZXKKCccnWWeRqz3OkYwW3NcxaF3BMdiSvAUjL6lsRSRxPMdZ7I5ZOSJTdSk5QbwcNRv11KbSDXtkFElOmvWMarqtGpG0IxS3bvkR9oeKeBnhpwzZICCs7IMICDgHAZUZld5G9qWSWnIMVrEhPiyiBcROPJqOODeMYSQPTBBVeX0dIJs3jhRTSSDZFEcAJsnflhekDUOvIyUjDH5IFSXocIpAlIY17tKTVC5cFqTOfyc7PRF3ZGxAMrMTzTiH3ZD0xive3Hq/puD7m7UxQnsjdHDgS314D+IQ== 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=nQ6oGdaMJv5E/rQ1xqdlafSDixVcz9occtrrLGfoLtI=; b=WESp7sFZeYoZgn6PpaVoB9f+9RzL7lMoYkH7jwc8VfgYz7nHkCIPgRX/w2SZO0yxe7nvGXS1S/ABzzo9k3AzgemBlBIEZf83vawm1tH8NsGE4FR4g215UoVirH/oGck4KUChDjYI/HyTNcQrDY+ulF7PFJwF665+feksef00sYHCrONwAPgBV+0BBVaVotqw4tkgcuOo7wtMlXBaREXyCYob0XrWVCSuLaLWLRRqMTb3x8SbGaveIRcLnnBpG8ehX3jsHaEVuk4s6bfuT/a27WudQttNpRUNk/mkXVg0VyxBsbYr0cHNkaz39/hl9rqArcrwggBLKzsX/Fb3m+YOZQ== 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 Received: from DB6PR0601CA0007.eurprd06.prod.outlook.com (2603:10a6:4:7b::17) by AS4PR08MB7604.eurprd08.prod.outlook.com (2603:10a6:20b:4ce::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.34; Mon, 6 Feb 2023 14:48:05 +0000 Received: from DBAEUR03FT058.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:7b:cafe::29) by DB6PR0601CA0007.outlook.office365.com (2603:10a6:4:7b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.31 via Frontend Transport; Mon, 6 Feb 2023 14:48:05 +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 DBAEUR03FT058.mail.protection.outlook.com (100.127.142.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6064.32 via Frontend Transport; Mon, 6 Feb 2023 14:48:05 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Mon, 6 Feb 2023 14:48:01 +0000 Received: from e124257.nice.arm.com (10.34.105.24) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Mon, 6 Feb 2023 14:48:01 +0000 To: CC: , , Andrea Corallo Subject: [PATCH] aarch64: Fix return_address_sign_ab_exception.C regression Date: Mon, 6 Feb 2023 15:47:52 +0100 Message-ID: <20230206144752.3829182-1-andrea.corallo@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DBAEUR03FT058:EE_|AS4PR08MB7604:EE_|DBAEUR03FT063:EE_|DU0PR08MB7663:EE_ X-MS-Office365-Filtering-Correlation-Id: e8058488-7e07-4a56-1435-08db08513b14 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: OFzt11nBpHvkzF1zt/wCA8axEcquTd6gmC42ljaNyDyI/Krgo7EH6UJ31pHmfpHyNVq+Ds4gS9W4IZ5V4CpsZCoENiShpnIsl1R6IoG5QO6bDcZvrsYJLH1SqGuBtf2x4d9SzxRU8Xlh2YEfnymYgFMPVT9h6AltytDJoOhe+Ho5q93ft97hZ/9ZLhwB+nRZPrzrW/ChEpVonCcFdfFaDdNCPJa97hR7OSzjGQ7jL/IRizlGi3HeKcCst/N9qmKBGO7gm25D6rzRiLf5We06EUfHd9S929He4Zxph8H39ItOqa5WcYN/QgXGpj2xyAqg2zMPsoDrfmsLj+BXi5O89HU9GmdOhzs7zgbBuait8p99HlM6s3o+boJcZuLi9AT0T8fh/Qdnjnxmbww2zELObzKRnQZyoxqSNvbSwvmY3vgzb6if59bwDi21MTqhEaAaitOlSXZ3IrzeCujDATxavPrDQiiuX9GYdHt6SLexSDDTm9crNNccHxI4ktFZBfzIgtxlWc0antyvDTKHLdfD6d5ktPvSlBz8kWjQk+k61u2tNvnm8LHMA65YJRIgrMBXW+L1KOpqOIGFXNxqi1pLxy8LuIS9qNYADYG1nj2UXbyNGqiTpa34Ey3EIgB78l/nfNGTq7OHFF1EgGGXd9IoLpHKujTGMu7J3F1KI/5iDeIz6LCbeRd0mvGpGnh4O8yrUBzs8NpJgbCDcoCXDluh+oL9vrGWR2jgMsbfl0Dxxdk= 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:(13230025)(4636009)(39860400002)(396003)(346002)(136003)(376002)(451199018)(46966006)(36840700001)(40470700004)(478600001)(26005)(186003)(7696005)(2616005)(5660300002)(40480700001)(41300700001)(8936002)(6666004)(1076003)(336012)(6916009)(316002)(54906003)(356005)(4326008)(8676002)(70206006)(70586007)(83380400001)(40460700003)(36860700001)(426003)(47076005)(82740400003)(82310400005)(81166007)(86362001)(44832011)(2906002)(36756003)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7604 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: becd9b1d-1a68-4d52-d930-08db08512781 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /wzi4bPqhUd4Abt+IaiRZbmCYFLGcnLjrWqqGINk6EhsbtZV3IH703oK/bWd8qlp9U+KWFcqR6ZlXTvwqUmnjxfwfLnuqysYOprk2j6PnONLu1iovLNXYDidcyo/Dy0lUhe5Ft0SHOpTr7TLhle+T3rXXInATSL0RjArWUe+Gh02Zvl/oTA4qeP8P3xC6BEPL+jb7UKk8N7BEtmE65xNkWjua9SjA7DIwFow/1Y9GAf9E25vaOVGOQOomRssVV3asMF8HmjjvJBUbkdw+O643hm6oLtr8Z+a4V6qVZHR1+XQ4K0eMFMGDXzg9meMCXDfMAbgZo1co8GaGZz7pQ1HfmpvPvAvdSicK7gzrjLz4ymrpHpPjzN/T6fAkd//BbQDamWtk6wcs892WhsmpYcV8HntpREgXFYGtr2NVgkEXwbHdq/ivfVtkBk4gdLlO96Hp6qLyrAX/nL+wtjdlgchxQC/gNFDXQm/la/klvmKDbQ/H+ptu7RswWl+HZy3UcQfdemdv4RFqKNy1syl1Phr7Tf8R34sT5i6E6/GhBleKWyCfkAAOZNTRzkXT4/Y/HIczylQP2QskvfKXSh3f5iA3lXiwB61rgl5Z/+nk5hVIe3qOcK+bkCNcvvYz1F3VJ/JpyHo1xrJ4PdAo7DUaXI0eb3l/GN6m08MkY8knZA9QF/fNd5XlT/nzkkbtGj0BPmpR9xeYNnam73teLzNCRipNw== 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:(13230025)(4636009)(376002)(346002)(136003)(396003)(39860400002)(451199018)(36840700001)(40470700004)(46966006)(4326008)(6916009)(8676002)(82310400005)(83380400001)(40480700001)(336012)(2616005)(426003)(81166007)(36860700001)(47076005)(82740400003)(36756003)(54906003)(6666004)(1076003)(40460700003)(70206006)(186003)(316002)(478600001)(7696005)(86362001)(26005)(70586007)(2906002)(44832011)(8936002)(41300700001)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2023 14:48:37.9445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8058488-7e07-4a56-1435-08db08513b14 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: DBAEUR03FT063.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB7663 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrea Corallo via Gcc-patches From: Andrea Corallo Reply-To: Andrea Corallo Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757093529260739480?= X-GMAIL-MSGID: =?utf-8?q?1757093529260739480?= Hi all, this is to fix the regression of g++.target/aarch64/return_address_sign_ab_exception.C that I introduced with d8dadbc9a5199bf7bac1ab7376b0f84f45e94350. 'aarch_ra_sign_key' for aarch64 ended up being non defined in the opt file and the function attribute "branch-protection=pac-ret+leaf+b-key" stopped working as expected. This patch moves the definition of 'aarch_ra_sign_key' to the opt files for both Arm back-ends. Regards Andera Corallo gcc/ChangeLog: * config/aarch64/aarch64-protos.h (aarch_ra_sign_key): Remove declaration. * config/aarch64/aarch64.cc (aarch_ra_sign_key): Remove definition. * config/aarch64/aarch64.opt (aarch64_ra_sign_key): Rename to 'aarch_ra_sign_key'. * config/arm/aarch-common.cc (aarch_ra_sign_key): Remove declaration. * config/arm/arm-protos.h (aarch_ra_sign_key): Likewise. * config/arm/arm.cc (enum aarch_key_type): Remove definition. * config/arm/arm.opt: Define. --- gcc/config/aarch64/aarch64-protos.h | 2 -- gcc/config/aarch64/aarch64.cc | 2 -- gcc/config/aarch64/aarch64.opt | 2 +- gcc/config/arm/aarch-common.cc | 1 - gcc/config/arm/arm-protos.h | 1 - gcc/config/arm/arm.cc | 3 --- gcc/config/arm/arm.opt | 3 +++ 7 files changed, 4 insertions(+), 10 deletions(-) diff --git a/gcc/config/aarch64/aarch64-protos.h b/gcc/config/aarch64/aarch64-protos.h index 6ab6d49af37..f75eb892f3d 100644 --- a/gcc/config/aarch64/aarch64-protos.h +++ b/gcc/config/aarch64/aarch64-protos.h @@ -662,8 +662,6 @@ enum simd_immediate_check { AARCH64_CHECK_MOV = AARCH64_CHECK_ORR | AARCH64_CHECK_BIC }; -extern enum aarch_key_type aarch_ra_sign_key; - extern struct tune_params aarch64_tune_params; /* The available SVE predicate patterns, known in the ACLE as "svpattern". */ diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index acc0cfe5f94..1b498979af1 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -2759,8 +2759,6 @@ static const struct processor all_cores[] = {NULL, aarch64_none, aarch64_none, aarch64_no_arch, 0, NULL} }; -enum aarch_key_type aarch_ra_sign_key = AARCH_KEY_A; - /* The current tuning set. */ struct tune_params aarch64_tune_params = generic_tunings; diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt index 137e506fe19..1d7967db9c0 100644 --- a/gcc/config/aarch64/aarch64.opt +++ b/gcc/config/aarch64/aarch64.opt @@ -40,7 +40,7 @@ TargetVariable unsigned aarch_enable_bti = 2 TargetVariable -enum aarch64_key_type aarch64_ra_sign_key = AARCH64_KEY_A +enum aarch_key_type aarch_ra_sign_key = AARCH_KEY_A ; The TLS dialect names to use with -mtls-dialect. diff --git a/gcc/config/arm/aarch-common.cc b/gcc/config/arm/aarch-common.cc index 27e6c8f39b4..5b96ff4c2e8 100644 --- a/gcc/config/arm/aarch-common.cc +++ b/gcc/config/arm/aarch-common.cc @@ -661,7 +661,6 @@ arm_md_asm_adjust (vec &outputs, vec & /*inputs*/, #define BRANCH_PROTECT_STR_MAX 255 extern char *accepted_branch_protection_string; -extern enum aarch_key_type aarch_ra_sign_key; static enum aarch_parse_opt_result aarch_handle_no_branch_protection (char* str, char* rest) diff --git a/gcc/config/arm/arm-protos.h b/gcc/config/arm/arm-protos.h index aea472bfbb9..c8ae5e1e9c1 100644 --- a/gcc/config/arm/arm-protos.h +++ b/gcc/config/arm/arm-protos.h @@ -585,7 +585,6 @@ struct cpu_option extern const arch_option all_architectures[]; extern const cpu_option all_cores[]; -extern enum aarch_key_type aarch_ra_sign_key; const cpu_option *arm_parse_cpu_option_name (const cpu_option *, const char *, const char *, bool = true); diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc index efc48349dd3..3d778b2982e 100644 --- a/gcc/config/arm/arm.cc +++ b/gcc/config/arm/arm.cc @@ -2420,9 +2420,6 @@ const struct tune_params arm_fa726te_tune = tune_params::SCHED_AUTOPREF_OFF }; -/* Key type for Pointer Authentication extension. */ -enum aarch_key_type aarch_ra_sign_key = AARCH_KEY_A; - char *accepted_branch_protection_string = NULL; /* Auto-generated CPU, FPU and architecture tables. */ diff --git a/gcc/config/arm/arm.opt b/gcc/config/arm/arm.opt index 260700f16bc..3a49b51ece0 100644 --- a/gcc/config/arm/arm.opt +++ b/gcc/config/arm/arm.opt @@ -30,6 +30,9 @@ enum aarch_function_type aarch_ra_sign_scope = AARCH_FUNCTION_NONE TargetVariable unsigned aarch_enable_bti = 0 +TargetVariable +enum aarch_key_type aarch_ra_sign_key = AARCH_KEY_A + Enum Name(tls_type) Type(enum arm_tls_type) TLS dialect to use: