| Message ID | b07af6ec-a74a-8c90-a2c7-38c03664b882@e124511.cambridge.arm.com |
|---|---|
| Headers |
Return-Path: <binutils-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CC07F4BB3BBC for <patchwork@sourceware.org>; Wed, 20 May 2026 12:10:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC07F4BB3BBC Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=bnwE9et4; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=bnwE9et4 X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11012064.outbound.protection.outlook.com [52.101.66.64]) by sourceware.org (Postfix) with ESMTPS id 2B0AD4BABF3D for <binutils@sourceware.org>; Wed, 20 May 2026 12:09:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B0AD4BABF3D 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-Filter: OpenARC Filter v1.0.0 sourceware.org 2B0AD4BABF3D Authentication-Results: sourceware.org; arc=fail smtp.remote-ip=52.101.66.64 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B0AD4BABF3D ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=fail; b=JODpDlToasce7l3/DoayECllf6XBxR5nK5mu3re0/V1wxCUNbymrR/Rm0EwN7YTHj5k5qjv9FDk10InRcuIb6AqaUyj0XSjI7NMPTeqijpSbvfrPQiLCn7cIsjc/dlJUir7jhenSZjuLL3Iw8+U8Nfw5WZUlGbX3XzoErsoPQw9+Xjnk43lVR172IQeD1JQ9M2DDsbQYNfhxT5q80vKgf29exv/CbKB0n9QGbNlqUCXN16LZ9HF9vKoxeiTPpTFUfCyfG/56WCjMIgEGHocXV0Pc2POKGp0zMortA5fLtqbyJcgVXpwr7YUcZ+zpwGTeo0oi6E52yQMCFDFniVguWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=T7pGyAqkh7P7QPShG+dwpXEWtujRs/Vc2g4+PksCDeE=; b=ZmmJ3u45T2tOlqONu4Crlxbo5jUkfMwvcWjW/iQO3xE0zW4tyDFUFP6CwMS7q+F9i5pcB++6YuiE9DVzQ2tqk+zOzfK+PfLJ1u+fQVwQrCaspj2+kebbLTqFbvVU4u+/yypZaw8YrcsVmZIKOLyn7ezIEAjeX/RHcanBMaqKgLSAbyKtYsfdwL8endKgM6EJCjyRX/1aba1JYpWG9Msv4cl3Qtv1mCCsclY9VMxNORwm6zSyIUgf3iRf/tyL5e+TtVgobC2YO1uC7ydagLANHCNpv5m21SVcLpWMJiVBpMzQ3mzarYzhR4+VevgvdWChzXAA9KjaJPsDW1M3GaFVmQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=sourceware.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=arm.com; arc=fail (48) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T7pGyAqkh7P7QPShG+dwpXEWtujRs/Vc2g4+PksCDeE=; b=bnwE9et4TDQd63m8NwbasasizSQl1QMohNIDWIss148sVJcR8xdjXrY4m4v0XCW+fpGif6VZB5QAyu4Ut2HMIZbz18afoeHMv3Q+phrORSajYIiabtlvUjWHKRCcHVEdsrfmE6kjwL8BMmIWbwG0zeKZ6i4dOgTrK+KiVjhsPsA= Received: from AS4P189CA0058.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:659::20) by DU0PR08MB9703.eurprd08.prod.outlook.com (2603:10a6:10:445::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.48.14; Wed, 20 May 2026 12:09:14 +0000 Received: from AMS1EPF00000093.eurprd05.prod.outlook.com (2603:10a6:20b:659:cafe::8c) by AS4P189CA0058.outlook.office365.com (2603:10a6:20b:659::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.48.16 via Frontend Transport; Wed, 20 May 2026 12:09:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 4.158.2.129) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=arm.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 4.158.2.129 as permitted sender) receiver=protection.outlook.com; client-ip=4.158.2.129; helo=outbound-uk1.az.dlp.m.darktrace.com; pr=C Received: from outbound-uk1.az.dlp.m.darktrace.com (4.158.2.129) by AMS1EPF00000093.mail.protection.outlook.com (10.167.242.90) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.48.11 via Frontend Transport; Wed, 20 May 2026 12:09:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HrRBFzMxm1Lj2Qbo5uudKcsV8HxTEphASzOH/K7RhGiTjeP4JpEJOcdnrXiibgS4Drx1ym5H7zOcCTzFtOafNxAyphWdDIPf+eP85UYGhOtD0Tc6uGNl6QOpXseYWgrUIPCrV7zjJx1f3WkYM9WNeU64LN+xB73kbI6Q4ozxyjXodw6XcMNxihP3SzW1RBCFrSb48JbzFBPJ0JKVxv9Bl9a8owx422TGzkAaZMXaGP2RaNj5U27uCPwhoXwSJjWD4jrDJKuEO018l8PUW55IAxh/EgKXFhU1BH8taFO5jLmJCAODVsgI48G7fZo78faTm8JbxNLyLHcjRh9kK3+VwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=T7pGyAqkh7P7QPShG+dwpXEWtujRs/Vc2g4+PksCDeE=; b=TqR5vwSS4A9z0YtJW7Nek36n6jcwBGsUr7hyA2kVdhQIpWIK5II2EhEM5Y4dr7Wf4YdU2LyCBU8Absn29Xr8Nae2k28uJsySRB9JHnOveGaSos0he08i6+9N/00wmczZQSWPo10eY2TJGROegNOQ4Zp9doKpfDWzPLg2p4/9uXyBNnsj500EHZDc0XIw4huuhfy5sdJfnOh0s7hDiH5ZHN+juiNsKOmjl+lTbYD84eR9TAe7xuThVOohvdpkfEjDzp/C4V5pqu1y3GGe5Hwupoc9VWLrKnSeOERiCKvyHecX3kNYLRrI45nROiDnMixeJIjd2rQYRQvwG+B1QhEcyg== 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=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T7pGyAqkh7P7QPShG+dwpXEWtujRs/Vc2g4+PksCDeE=; b=bnwE9et4TDQd63m8NwbasasizSQl1QMohNIDWIss148sVJcR8xdjXrY4m4v0XCW+fpGif6VZB5QAyu4Ut2HMIZbz18afoeHMv3Q+phrORSajYIiabtlvUjWHKRCcHVEdsrfmE6kjwL8BMmIWbwG0zeKZ6i4dOgTrK+KiVjhsPsA= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from DU0PR08MB8255.eurprd08.prod.outlook.com (2603:10a6:10:411::9) by PAWPR08MB11454.eurprd08.prod.outlook.com (2603:10a6:102:50b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.48.14; Wed, 20 May 2026 12:08:10 +0000 Received: from DU0PR08MB8255.eurprd08.prod.outlook.com ([fe80::281d:22ec:87cd:8a24]) by DU0PR08MB8255.eurprd08.prod.outlook.com ([fe80::281d:22ec:87cd:8a24%5]) with mapi id 15.21.0048.013; Wed, 20 May 2026 12:08:09 +0000 Date: Wed, 20 May 2026 13:08:05 +0100 From: Alice Carlotti <alice.carlotti@arm.com> To: binutils@sourceware.org Cc: Richard Earnshaw <richard.earnshaw@arm.com> Subject: [PATCH 0/5] aarch64: Remove aarch64_field_kind indirection Message-ID: <b07af6ec-a74a-8c90-a2c7-38c03664b882@e124511.cambridge.arm.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PR3P189CA0031.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:53::6) To DU0PR08MB8255.eurprd08.prod.outlook.com (2603:10a6:10:411::9) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: DU0PR08MB8255:EE_|PAWPR08MB11454:EE_|AMS1EPF00000093:EE_|DU0PR08MB9703:EE_ X-MS-Office365-Filtering-Correlation-Id: b3d55a22-ee3b-42c8-9915-08deb6689c1a x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|366016|1800799024|376014|56012099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info-Original: UgqhH1AMeT35W7vlqYgpHJASqHW1J/kAN1S4WpoTujyfSvmxPE2g3N8ILafFYLA0jYV5UBHgfiwPiboCDQZuEtT3g9GCaHGNIE0hBE7trXzrzlIQiLNB0ldyg4Vaofmum5oJvMvJ0UnSImESoU+VUc5Z9L/qvSPMHl5MzgicK9SrOae9T2dBl21kwBaVUHXXY3ibfsRcZ091iMo3TyS73/133nMQoYI3bQAlBHjZkr3iE2jqgpXSYkDHufpWrtuj5Su8RzfF9FwINOHOcslq9YWGcgm4GsTd19tNUXZR7a71yiC5HhsBy5E4bjXX2zNEbu8QDlF58SM9mUOMxjVTPbn0tr82SSa/mCUGjluytyvxQJIPULKQyRheHlEPjQQPcMlDN25SRcow46i/rKm8QGCogPBrSJYVXEOHXjcWcww66/wZ5UtPwUHhpw+n1H9XmYC/PL156gFrv5QYHzaRRC65J2CvAw8eL36vbbU0loJ0V4JkYK5phbw9NKnOdqmNz+X6hxdha8e7ULFiCFpHKTSHMjYEzNK42NEVkuFpK8VbsqYCrHxXpPyW7xTlkk0mrPf5RWiVz/eDbjvjQBhTwbcK6ry3lh7EF18lxxtRdIV1Xc3KbKNXXULLU5C+pUWpp8fNeA0vUdqVa1e6fpxPFQqUqdQBvRiGQPKjMeLUzATzB/18F/APRty1b68HszBY X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB8255.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(56012099003)(18002099003)(11063799006); DIR:OUT; SFP:1101; X-Exchange-RoutingPolicyChecked: btT8eB9NvkSv0pFJbZWUc3bVBVVrllyEehv+6mmxe82X6tQilBdi6q754E5CVkFn9WeSqyxT/Gk0NyaFpKmljiEAu2FNzrMEG2Ez8X019WOUydGIs6Pz3VTfgJgs5QVUzfBkPa/8xlASNOa0h9VWO4fI5a1aresrwocFW/h47QxRXzaMKnyvHRn+Ui67vaBwl3/xhzY3vCxZ3FcG5j0e6AoZV7sEDEMOGq9W7FyjOEij5RLNsFl5W5CL6KUE9A7PIzfuiYJ8VeertcZG+Njyf9mFdX0hYBUkacddKh2DLc2i+GsG4vT1E1JS7Pi61pJENsocNmGCPqkZXvwl4MZVRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR08MB11454 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AMS1EPF00000093.eurprd05.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: b7a6817a-d443-433e-1c62-08deb6687511 X-Microsoft-Antispam: BCL:0; ARA:13230040|14060799003|376014|36860700016|35042699022|82310400026|1800799024|18002099003|56012099003|11063799006; X-Microsoft-Antispam-Message-Info: gVO6wRoWYH4E9BVyK98h4VEtM25mKJbgS6rpRDuK1KEClOyOW21OGFpUUWZRW36/LrmkUcOccZWjhA/YHS5rVDZ/CdwEriNDlPTERBa3t/3DtHhxfH1yISIF3QskERBmubPe91LTnMOHHOCV803C0eyAc3IoTZoOOVEA2270NJ8ggI6kQR7Z2UwN3kJLXHgxr4QiYSxrc2PqWFV00LdyQrPis84NRDttfDQq5Alanc2DEWQBgjVuGbgWrRj0oJf0hsnivwmI5hGQYobqXQfbBSn4RSIrkVXypg457oRG+zxjepz3RHfLG+mXzVcb3dCIDVyY2wMtkl6lYR1s4DFxZRmH4a+apizDk03K2gkz70vex03n0czLDu52cXolXiILVNXJHYl2YEIkTx96NZmzUri3qo/R4EQdQz3HwcQY7zEBPBM95G0vrb/30yyJVDbynqaL1byL6x3sy/PtdCye6OWskPzbqyk/8D5RAKTkpQD4VRnCUz2lY7pJeLtQjnQMl+BJuTeoqs4biurZUVolVFabZ3NkprsvW3JJZljCzQCRlax/lucaz1IVwA6L4K6JSuzg7KIa29FKa29JOYTD0t3gxp2b3TY9E0GH3k+JgCWoumHnKyk0Ok9ecVMo9hKYP1OnwbE6X6DnIo2zsYFmek9mZdyS5VOw/Ta/nCcL9pcWW/XZB6utATHFzH3woGtUaYMpmUFL5iEZTRiGOSBCQZmfDxJoH6VyEyukb3gnxGo= X-Forefront-Antispam-Report: CIP:4.158.2.129; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:outbound-uk1.az.dlp.m.darktrace.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(14060799003)(376014)(36860700016)(35042699022)(82310400026)(1800799024)(18002099003)(56012099003)(11063799006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HnPpBjtzgFMz71DSZ86VECdZcJZIm/zTsmJKSxoxvOsQv0666VwL92PvIfUl31cES3FgKZkongYj+Riohb0jqxiwfCgwhn6f/ZHzOtQbQJqV4IIszUVm2fcOdlH5h/JFra7+f24YpYg2s10PfEhZCY4ppsHFD8ovKdXfRul9m/lXNK4vDpJd5hcAuSSwbXEffudYqV2nb273VobAjxs+5DOHbOMg+wkt4beAZUYhYCFf0Zcus4gSjEeoA9PPPzr9VKveybbmBqsJiiokr2478zsBtr7SIrCsIwJSpYMSEKQ6E4AWV8ltnwghtzoq1JTHq7kNuob5qcso1g/4EXGZkDBQ8P1J3ZHLqbd3ids9sw3HbBB3c5BEo4IaPWspghEeoU0jlSAfR9kTqT/ztRDGSWdRrAuMWhyDSW2fV2hGPHVMHW/1ghRtEifXHtUBpJfI X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 May 2026 12:09:14.4614 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3d55a22-ee3b-42c8-9915-08deb6689c1a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[4.158.2.129]; Helo=[outbound-uk1.az.dlp.m.darktrace.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000093.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9703 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, LOCAL_AUTHENTICATION_FAIL_ARC, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP shortcircuit=no autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
aarch64: Remove aarch64_field_kind indirection
|
|
Message
Alice Carlotti
May 20, 2026, 12:08 p.m. UTC
This patch series remove the aarch64_field_kind enum, and replaces uses of the
enum with direct use of aarch64_field structs instead. I think this improves
readability overall, and might also be a marginal performance improvement.
Passing aarch64_field as function arguments causes GCC to emit this note:
note: parameter passing for argument of type ‘aarch64_field’
{aka ‘struct aarch64_field’} changed in GCC 9.1
Is this a problem? Should I find some way to avoid this note being emitted?
As an interim measure, I've retained some of the aarch64_field_kind enum names
as macros that expand to corresponding the aarch64_field value. I've
deliberately chosen not to inline all of these remaining uses immediately, as
in many cases I intend to either add comments or rework the surrounding code
first. After this patch series, there would be 76 macros remaining (not
counting the FLD_CONST_* macros), out of 216 original enum values.
Does this approach look ok?
Thanks,
Alice
Comments
On 20/05/2026 13:08, Alice Carlotti wrote: > This patch series remove the aarch64_field_kind enum, and replaces uses of the > enum with direct use of aarch64_field structs instead. I think this improves > readability overall, and might also be a marginal performance improvement. > > Passing aarch64_field as function arguments causes GCC to emit this note: > > note: parameter passing for argument of type ‘aarch64_field’ > {aka ‘struct aarch64_field’} changed in GCC 9.1 That depends on which files generate this warning. Does this function form part of an API that would be exported if/when libopcodes is made into an installed library? If not, then we probably don't care. We also don't care if it only occurs when this is used as part of the code used to build the auto-generated code. I think there's an option to gcc to suppress the warning (-Wabi?). Perhaps one way to suppress the warning would be with a pragma; that would be preferable to disabling it on the command line, since that might lead to other cases that do matter not being reported. > > Is this a problem? Should I find some way to avoid this note being emitted? > > > As an interim measure, I've retained some of the aarch64_field_kind enum names > as macros that expand to corresponding the aarch64_field value. I've > deliberately chosen not to inline all of these remaining uses immediately, as > in many cases I intend to either add comments or rework the surrounding code > first. After this patch series, there would be 76 macros remaining (not > counting the FLD_CONST_* macros), out of 216 original enum values. > > > Does this approach look ok? > > Thanks, > Alice R.
On Fri, May 29, 2026 at 04:00:14PM +0100, Richard Earnshaw (foss) wrote: > On 20/05/2026 13:08, Alice Carlotti wrote: > > This patch series remove the aarch64_field_kind enum, and replaces uses of the > > enum with direct use of aarch64_field structs instead. I think this improves > > readability overall, and might also be a marginal performance improvement. > > > > Passing aarch64_field as function arguments causes GCC to emit this note: > > > > note: parameter passing for argument of type ‘aarch64_field’ > > {aka ‘struct aarch64_field’} changed in GCC 9.1 > > That depends on which files generate this warning. Does this function form part of an API that would be exported if/when libopcodes is made into an installed library? The affected functions are gen_sub_field, insert_field, insert_fields and extract_field. They are static inline functions that are only used internally. The warning is actually inaccurate, and is only emitted in GCC 9 and GCC 10. It was subsequently tightened in r11-8226-g49813aad3292f7. > > If not, then we probably don't care. We also don't care if it only occurs when this is used as part of the code used to build the auto-generated code. > > I think there's an option to gcc to suppress the warning (-Wabi?). Perhaps one way to suppress the warning would be with a pragma; that would be preferable to disabling it on the command line, since that might lead to other cases that do matter not being reported. I'd be inclined to just leave this as is, given that it only affects old GCC versions, but if we wanted to mask the warning we could add something like: + #if GCC_VERSION >= 9000 + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wpsabi" + #endif ... + #if GCC_VERSION >= 9000 + #pragma GCC diagnostic pop + #endif Alice > > > > > > Is this a problem? Should I find some way to avoid this note being emitted? > > > > > > As an interim measure, I've retained some of the aarch64_field_kind enum names > > as macros that expand to corresponding the aarch64_field value. I've > > deliberately chosen not to inline all of these remaining uses immediately, as > > in many cases I intend to either add comments or rework the surrounding code > > first. After this patch series, there would be 76 macros remaining (not > > counting the FLD_CONST_* macros), out of 216 original enum values. > > > > > > Does this approach look ok? > > > > Thanks, > > Alice > > R.