From patchwork Fri Sep 27 14:47:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 98065 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B128A385DDCE for ; Fri, 27 Sep 2024 14:49:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20619.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::619]) by sourceware.org (Postfix) with ESMTPS id 5233B385840F for ; Fri, 27 Sep 2024 14:48:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5233B385840F 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 5233B385840F Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::619 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1727448529; cv=pass; b=jOyyz5lW57oeYkJV2x3DI5WqrdIKEvNysjRmVDoI5+jEx1p0m26tW03TltaiRkmklSEecmY4kPTrMa0VhXTRgpsxIUrWxCxtbs8pYG5Rg4ArlE4ndmIrMhBzuwWNaCNO6fIK4v+vGbgqxER1G/txedFc9shV7AJhk2x7iRsmHC8= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1727448529; c=relaxed/simple; bh=Oqr1o6tXnG3t0QXTku+98LWmGIkVtU/YTVcOe431R4E=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Zui/zIq8WmSQ6NUN9D8K652dCKDffn/t1ajjb7Ngt16uvVAnySZvPrFE1e457RSA8VYCkvQQz2NeRxx9kVGsa0JqPtgXzOtOT6X0G06KJV7J6n31eBGt1xmPBJIpSkO9RbN8X7Xdrpc2sPYUtGPjiyTN+lIavHYikBiueO7EfWI= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=baqliauC1gWMC/VBmSufDiwXzX3jFIpj1e1IbNV5QAyMWkddWny45bGaVgHETxDydRgrz/2E1D5q8h7A0U5ebMnm7CEQ5ZSe0wvIaPMyZjgIhUsLQlUwb9c0UeGRAlIuUm82J3JfralnLynRtViCg7Ps9lUUwg+6rY6hAXIzJYBWdnhwX8n1C0Frb1IOjd3QjTVrt7+Yc4WvOLguh+0CXw7ImspF8XTSl6MrXeyfYxomyGa97eoq9daT4MpJOfyeyMf7KB8KStivUiflWHG/zoxdOyW9NXkTHdJJU2U39d/zmLvKQpLbqlMBfBEctDrSZ8AIaveZObQ3tISikcfLgA== 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=sdhWvzWXvD2myfzkMn/K1yb20pq3QkSz/U5ExMWW3Iw=; b=iaTw0WCsv/bFuEkUw4Um5WsE3JeuVpqxdK8+W2LWxxC+2x8Z5ms6Kr87TPv+Vj+cN/bGCeqMMiUz7Vt8dNZbf9KbqNb2qcSK6EVR6NEBuNDasvEiY7A0Ave6O9W8Fpy/h55H5tSJjVaFDTgUbPt+sLr+6pPa+sqaAfEjx0H8VweN+B/4DVQllJ+qQss7c8PoGWplGuqq20TeujDPQkK+SHkl05YKyrIzyEq1x6wFFUYZAHBoTsPaUMjPrsp9PM2/v+ZqBXSFyi1aJVT+dYmRIZWZqKeAmdRgPmiSLUkeV0LwyoQVyN7rxuL8W04GmZWn8251C8DW7pvo0BcpX+GRVA== 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=arm.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=arm.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sdhWvzWXvD2myfzkMn/K1yb20pq3QkSz/U5ExMWW3Iw=; b=FJodO09hNnDO2ptISJODUldEkUQyp7bV28SLWLXOUKMaSV9VIxCFIDsHNVZh/ZnIzAYwFYiKlL9YkGuU2hp4GNmHXJUnqw5+1loUBKJYKWEA84Qur4Bud5DjspYmiNxa9oplkU0/tTpcOyW8cE0OFNWICQnpo4O4x+/LCmteRb4= Received: from DB3PR06CA0020.eurprd06.prod.outlook.com (2603:10a6:8:1::33) by DU5PR08MB10612.eurprd08.prod.outlook.com (2603:10a6:10:51e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.9; Fri, 27 Sep 2024 14:48:34 +0000 Received: from DU6PEPF0000952A.eurprd02.prod.outlook.com (2603:10a6:8:1:cafe::57) by DB3PR06CA0020.outlook.office365.com (2603:10a6:8:1::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.22 via Frontend Transport; Fri, 27 Sep 2024 14:48:34 +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=arm.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 DU6PEPF0000952A.mail.protection.outlook.com (10.167.8.11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8005.15 via Frontend Transport; Fri, 27 Sep 2024 14:48:33 +0000 Received: ("Tessian outbound ff7cc14e3a8a:v465"); Fri, 27 Sep 2024 14:48:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 6ba62f1f88564edb X-TessianGatewayMetadata: XDByOuCpc0RMpj7dNdSQQ/GuMf7w2WDBZF4bO64wlaLdVXeHul9RtonY4NUzZRsBzXMo9ptzKDCWyvkLClvSMBQues+v3ZcYFVKpGasIqY8OkZwZRMBwwroetMfVPSfMhYizVBJ/rzHNRavOUARYvxurtaY2KyvYSCgFjD4g2HY= X-CR-MTA-TID: 64aa7808 Received: from Ld5e65c47dabc.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 07AADD13-FF28-4380-B1A8-E8637A6BD39B.1; Fri, 27 Sep 2024 14:48:25 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id Ld5e65c47dabc.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 27 Sep 2024 14:48:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uh57aSEnv6xKK0fH7tlZ4RMNP78vFIR1B5tdBnOO2OtvZQap7ANK+PyefFh8sVYaFXwU8K55T9mq4NqLrP93yILsq9e9E6fE3bue+n79EDWVCzit0j9GIoZ4c0cW0gnq40Gv2iOOPp/rXFWMOQcdSIX7NeH0rgGx5pN5r/8cQ+gXLBA6pN/xZxZDeaEZjH3B+GMp5Nye59NopNFFl/X2iJIH2092O/IB0uhXQTOg1cwbmI34lR3nZEf992KjzN8rs2PsptG81OwlBdIh+uEmGL5sm9v0jnF2WGS5q/IEoUN+jUw7N7YC7yDvo/ZIiAqxiEBJbS4hkDuZGjfYDssVtw== 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=sdhWvzWXvD2myfzkMn/K1yb20pq3QkSz/U5ExMWW3Iw=; b=gy8FgrCep9Zh3zv7E8HbXhBDAowOXZlxoTXe+GfBEf9DEvoRViYka97ADkJdfAEfi2j9BehL2mP0hWqQ/TvrUPQXEIhj1XHOKUMnJe4fvswoUdb0RLzIL6cz8HAnrnomTXzMjrWkJUVzXUTSDQE11CLxfstdTPMWCJqBXBCMEpj1S7HxioHDfkmA1TdzhxPzaXZ9UXbCzhgf2BaesJlhl0pI3E0vpYmn01fMX50az/Aa3y1S/Mp7HkkROULsjr3hI9KXDiiVNXfJot8M/6dhv2Tc+K6eQKj+xXFluxd7OGtquvHF7dt7zbVxdZwzVCUtRvr4S4OYeNzHxW0WpPn5TQ== 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 (0) 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=sdhWvzWXvD2myfzkMn/K1yb20pq3QkSz/U5ExMWW3Iw=; b=FJodO09hNnDO2ptISJODUldEkUQyp7bV28SLWLXOUKMaSV9VIxCFIDsHNVZh/ZnIzAYwFYiKlL9YkGuU2hp4GNmHXJUnqw5+1loUBKJYKWEA84Qur4Bud5DjspYmiNxa9oplkU0/tTpcOyW8cE0OFNWICQnpo4O4x+/LCmteRb4= Received: from AS9PR06CA0645.eurprd06.prod.outlook.com (2603:10a6:20b:46f::17) by GV1PR08MB7826.eurprd08.prod.outlook.com (2603:10a6:150:5a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.8; Fri, 27 Sep 2024 14:48:18 +0000 Received: from AMS1EPF0000004D.eurprd04.prod.outlook.com (2603:10a6:20b:46f:cafe::9d) by AS9PR06CA0645.outlook.office365.com (2603:10a6:20b:46f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.22 via Frontend Transport; Fri, 27 Sep 2024 14:48:18 +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 AMS1EPF0000004D.mail.protection.outlook.com (10.167.16.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8005.15 via Frontend Transport; Fri, 27 Sep 2024 14:48:18 +0000 Received: from AZ-NEU-EX06.Arm.com (10.240.25.134) 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.39; Fri, 27 Sep 2024 14:48:12 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX06.Arm.com (10.240.25.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 27 Sep 2024 14:48:11 +0000 Received: from PW070M4K.cambridge.arm.com (10.57.79.200) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Fri, 27 Sep 2024 14:48:11 +0000 From: Matthieu Longo To: CC: Richard Earnshaw , Richard Sandiford , Srinath Parvathaneni , Kyrylo Tkachov , "Eric Gallager" , Matthieu Longo Subject: [PATCH v1 1/4] aarch64: add debug comments to feature properties in .note.gnu.property Date: Fri, 27 Sep 2024 15:47:52 +0100 Message-ID: <20240927144755.632627-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20240927144755.632627-1-matthieu.longo@arm.com> References: <20240927144755.632627-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AMS1EPF0000004D:EE_|GV1PR08MB7826:EE_|DU6PEPF0000952A:EE_|DU5PR08MB10612:EE_ X-MS-Office365-Filtering-Correlation-Id: 47e6bcc4-cee7-442b-9b2e-08dcdf0375a8 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info-Original: Lxc5PxlbthzqHDSrIEJGrIkDHQ5+q2lpSLE2bNAKlEfp6vpJXShXZP7SOTo/+gupoIch3Ew+dAIZxB0zFMAkqP2MPRNhzLMfCNiOaUUpslWwfc1Sh3SJcO77UhpUP5B04D1rlcvvWYmPxgqbL7Z9fYXvMX7QrG4WzKJ2ugGIhPrGq2QSi1O3oUTO2A0l2GocbkAfwOu4tc0cXW7lh76mJP9WWdGk+L3OvVqPcKuAq03IsZ9LnKMle3ezdNj8xkkBvhomR8dus826hhSg18ORYIyIeGKrdj2mdWYqoh8zrFACAvUc134ZmKQUg6M39J6j26a19OCOkNyaU93qWMNbGLiniVlR3x6/BvJuEVpXKOi+DWuL+w1t09hryekJXdOYwnVnBu0pHIculrTQ/aGUxdzel03P21ty+x2y3bWBNakSfdIa2rHmYt5Be3OsWMviuIWPDtzihdAUJ15L3zC16FlBmO2d81Wf2zcMBhroobRcZKZTCYefWk/844H5oRFewPAZ7ahJaIMnKhPPAOCjMGTl8EvlCK1qyqKpYTIkazLV0z51X7Sp5Rvg4OC6msmR3x9NKou/iUWd8TlFy6H65cpeL7sGh/4nXBflwW699ObVON0EI6aBsla4omHzHQmgrtbn786m9/F7fRkDxuxfrFGzWwNZVg9TFb3XVSshtG8rUNsZbFs6J+9eLS+8ZBmC5SWBKFIWYQDxJAH56bCSp5AJWMXAb7+7k++pl8tkpjkSZdM0SUpQSgGKijJF7bWrIBYLbYbC3gFZnRtypclVqDGqZQ2aYzfrQ2JEJj64J8QBGeXEnyb2cxuY7LjGPkCpf8kvumlKlczY459y7hpJ1JtshHGq8Doj2akTBXFWo96BkiZ512ej8g3r/jGfj+SoE2jQDaibYfSuK8hsYkbpLdZs0QTfaq+jUBpNL/InnTqjlhhDhm02nEXmEz8slWwzyBUCJnPgkAMytIJcjdkPtr0q3b9SkO5pPr2p0qXitdLVWz3FFDHhfbKsQtG6qEcgouFT0oEXv5EwMtRxIrhmZWq1GfVxeMOhvRainl4oWOgdzm3SaTcxbj5tPVHT2rlJtAfR1iERYywIr/SPCE/NoRLnecqxPdBICNqCh50tqeodWF+WQzMdm4o0nK1rl54JOgV8xxWIbLEhZLXZLiCaOpDxq4F9u3ZXcVrSW1e/qu+Vi7iYpgb3h9EPC1m/SxrolDVis/ZioEIWq7iMhpiPwaKRFktG1hT1yr2OGyntdF9a3wgtIZ2ApL4iydREW4XhLfle+3XgqNNT5SXGBp3mwut20Xj79SUsvporwY6PQD/53C3O/zCobTrf9DILk1r9hHfSFhShLq6v54ArR7nD6irRXmI6i63Uwq9F9hvF/2PfZsWbsuKsJ8gGEFEP6GQNjGTnUhW/dEJwnpUTvRR3bg== 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:(13230040)(36860700013)(376014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR08MB7826 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:20b:46f::17]; domain=AS9PR06CA0645.eurprd06.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU6PEPF0000952A.eurprd02.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9b7296c4-d57e-4f95-e37f-08dcdf036ce6 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|1800799024|376014|82310400026|35042699022; X-Microsoft-Antispam-Message-Info: 0mvppkffSLTJaEbeaDCLi3CcS3sqeufKXMBGUQB/SNTf2XQvNIEJDUI2e8p9U8q8Z4/juYGIIrPgHxPO7rCWBC3YSPxEBuWcIAZ/1bSD8tvrddhHrg0cDMEooWt7XDHEFDw7ZpRT8mQVwxbd3akgFIHDOKW2sgdl4MYC7fdAKXzUSTx9N1Ahg4i1rxu8CEW7RVJ0YgaTAAcUkg10FW+OtaYGK9NG9dpDK4VVrBd+F2HBb07j+j8uSA79axFG9O8EL7iSvg/uUW3fk3aFG4jqszd1A/rc0NSMkm3Bwfox7Q5wkFnTd0hyR7H/1TebaV1ehUcBiwuJHHWo9aUoM4EyGQZPSY3QxNcXusIFxDdzuk4k9EATzv7f8DGWWSeai0VgYM8vJ6czn8p16aer+pKR37suVmadsSmxTroCvGMmk9RIoF9XK3ykn1KQIOtXfMCYB2nrAQjfYuyM2/ntNQ0ll3/WqusicGGhPFvNCWxS2MZAx/1L9oOr5fQzZOIfTAKGtDJZMK+ikF6IoioS/YdzHKEJ2wjbCvpvmHuYx+lQQTxb7PMInRFiDQ0Xbg4kIZTUGhi+EmVLPPmtKaQEZU/xUd7jj1unyDPoSqqYtAkTYa3JeAMbc3I9+t6Gps4SNPu7Z8UxeeEuMLBAUGJ/tV8IwxMy6BcKy2f1DCe9GvV3uQmr7FBFsdzepuD0RJerDAPv7NqxsWgx1FHzU57uZ2atmklzbyICJSAJpnMItkgJQjqsYsmR/iOuacikbe+dm3tonjo8wdXlfqFqzNOzyyCzHsyfeCmEJyNqWW2+21cTzou81PEb7VIzSj90nb/8UE3Bz27XAcsGR7ow1ucLuv4jiIlbaY2A6l10qufMKp5JvelOv9tWAMIAXeLh+So8LFs+HJpWmpOeHg/TqE1EE4gA86SHwbGo7JlPMV/QxO9uz6kKB07YXGkBZ/c14Pqpjl+ZIgdawcpvFlrZZdkr5R25OPXlqtAN0iMGF1fGB0tjaRWJazqYY8DUSQanANH9Qy10cBrKMkCQHNsi0UqgtjsP5eK3sl3yIn+HF9LVe5lStmdvwaY6Sq0Lflls3zy4viYsoWw1DzmRZ9IreHGvvVopWWLMz0nQHgdIPYrhnHOnNy9x/QEjBEIk1/BSUmmTGrmdXRsLvYo6J179mAuT2Oz0kBywaVnNjuUGZRC0f80/12i4ultoAbXsnQ9HlYTIDmDuW9dDc5dnQn01DdVoNH6tCGbm0YFfQDQOuOy00CWbInZbmrzIIqNQv3uenER7ISHc49hRnGVe1jVH1A/Nvg1z6SYpSGTXCq7lXV9TQjF27Z7LIELj5/7wofN4xXmSygYf5WgVdVT1qLXDDNepwujKgPgGmlL05hq5mTDd7JzvhyCSL69QZfbQaKZT0LFo8VWkCImGrp/w9lc5oIhhnefhrA== 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:(13230040)(36860700013)(1800799024)(376014)(82310400026)(35042699022); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2024 14:48:33.0554 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47e6bcc4-cee7-442b-9b2e-08dcdf0375a8 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: DU6PEPF0000952A.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU5PR08MB10612 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, SPF_HELO_PASS, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org GNU properties are emitted to provide some information about the features used in the generated code like PAC, BTI, or GCS. However, no debug comment are emitted in the generated assembly even if -dA is provided. This makes understanding the information stored in the .note.gnu.property section more difficult than needed. This patch adds assembly comments (if -dA is provided) next to the GNU properties. For instance, if PAC and BTI are enabled, it will emit: .word 3 // GNU_PROPERTY_AARCH64_FEATURE_1_AND (BTI, PAC) gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_file_end_indicate_exec_stack): Emit assembly comments. gcc/testsuite/ChangeLog: * gcc.target/aarch64/bti-1.c: Emit assembly comments, and update test assertion. --- gcc/config/aarch64/aarch64.cc | 41 +++++++++++++++++++++++- gcc/testsuite/gcc.target/aarch64/bti-1.c | 5 +-- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 4b2e7a690c6..6d9075011ec 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -98,6 +98,8 @@ #include "ipa-fnsummary.h" #include "hash-map.h" +#include + /* This file should be included last. */ #include "target-def.h" @@ -29129,8 +29131,45 @@ aarch64_file_end_indicate_exec_stack () data = feature_1_and. */ assemble_integer (GEN_INT (GNU_PROPERTY_AARCH64_FEATURE_1_AND), 4, 32, 1); assemble_integer (GEN_INT (4), 4, 32, 1); - assemble_integer (GEN_INT (feature_1_and), 4, 32, 1); + if (!flag_debug_asm) + assemble_integer (GEN_INT (feature_1_and), 4, 32, 1); + else + { + asm_fprintf (asm_out_file, "\t.word\t%u", feature_1_and); + + auto join_s = [] (std::string s1, + const std::string &s2, + const std::string &separator = ", ") -> std::string + { + return std::move (s1) + .append (separator) + .append (s2); + }; + + auto features_to_string + = [&join_s] (unsigned feature_1_and) -> std::string + { + std::vector feature_bits; + if (feature_1_and & GNU_PROPERTY_AARCH64_FEATURE_1_BTI) + feature_bits.push_back ("BTI"); + if (feature_1_and & GNU_PROPERTY_AARCH64_FEATURE_1_PAC) + feature_bits.push_back ("PAC"); + if (feature_1_and & GNU_PROPERTY_AARCH64_FEATURE_1_GCS) + feature_bits.push_back ("GCS"); + + if (feature_bits.empty ()) + return {}; + return std::accumulate(std::next(feature_bits.cbegin()), + feature_bits.cend(), + feature_bits[0], + join_s); + }; + auto const& s_features = features_to_string (feature_1_and); + asm_fprintf (asm_out_file, + "\t%s GNU_PROPERTY_AARCH64_FEATURE_1_AND (%s)\n", + ASM_COMMENT_START, s_features.c_str ()); + } /* Pad the size of the note to the required alignment. */ assemble_align (POINTER_SIZE); } diff --git a/gcc/testsuite/gcc.target/aarch64/bti-1.c b/gcc/testsuite/gcc.target/aarch64/bti-1.c index 5a556b08ed1..e48017abc35 100644 --- a/gcc/testsuite/gcc.target/aarch64/bti-1.c +++ b/gcc/testsuite/gcc.target/aarch64/bti-1.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* -Os to create jump table. */ -/* { dg-options "-Os" } */ +/* { dg-options "-Os -dA" } */ /* { dg-require-effective-target lp64 } */ /* If configured with --enable-standard-branch-protection, don't use command line option. */ @@ -61,4 +61,5 @@ lab2: } /* { dg-final { scan-assembler-times "hint\t34" 1 } } */ /* { dg-final { scan-assembler-times "hint\t36" 12 } } */ -/* { dg-final { scan-assembler ".note.gnu.property" { target *-*-linux* } } } */ +/* { dg-final { scan-assembler "\.section\t\.note\.gnu\.property" { target *-*-linux* } } } */ +/* { dg-final { scan-assembler "\.word\t7\t\/\/ GNU_PROPERTY_AARCH64_FEATURE_1_AND \\(BTI, PAC, GCS\\)" { target *-*-linux* } } } */ \ No newline at end of file