From patchwork Wed Oct 23 10:35:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 99389 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 20FA93858420 for ; Wed, 23 Oct 2024 10:37:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on20631.outbound.protection.outlook.com [IPv6:2a01:111:f403:2614::631]) by sourceware.org (Postfix) with ESMTPS id 7AED53858CD1 for ; Wed, 23 Oct 2024 10:36:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7AED53858CD1 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 7AED53858CD1 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2614::631 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1729679805; cv=pass; b=WtAXrZwvfNEAdgctYfQbu8PLzPgCj6JH9HOAfkddAJRfHxM2/9uvof0LL8wBecBmLk0WbM/vVGNbze4YKhikEeTBd1Qc/JCB2dNDCgMp/+QGIfvqj5FcgCjMCSDPXfPk0oel2UdudTcTZwKYkqqz3IRv+cO+GxKQaTtrssDysOU= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1729679805; c=relaxed/simple; bh=44uLh7cvmbgxhKnwh+UIpRjdJhBIMCm3ujRSO5ITLCk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=Z+cuL/BReFhpMQ67Vn+QvPS952Hf37jQTR+H0GunCSE6el/SQGo0apYmT0TN8eupMOYE7JwMcldfupI8IVT8A+dNzmy+bzvd8njNbTSIEZSrIF17a2o09hCkLr979iNk4FXBjgElzh3tWmHucmKTLVdtceoYfF6ntU72/KandR8= ARC-Authentication-Results: i=3; server2.sourceware.org ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=w1Tc9uF12qiea5a0MRfPIDSEc4aSv81QZHAV/0G/fPYJKw930IOeMG5S50dIz9lQBpx/HSfUeh0s0KvyCEfzI6wXKUtQURzvu4OaA2jYAMtk1Wbj6VhVlFGTTZipgVYC49s87bK3zPAXHF1wVDvfBK0wYgO0H84AUdavFNxu5nH8gflUF17IuJ2nq10p+g0vfKeEWr3g/YOaxgtdh5mr6/ZwEJxy+94o32CtfbowVoj8ch25fB7s48PN9+QYBLFjCLD7Fe7o9zg8FYQQWco1eEHPhNtAJqPTu+5BCuOP3G05RreEzfgLtxMBKo6VWGgE3Cwy/yjAHq9C6jjfQJq73A== 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=1qqw0Ux1Me0WhMYb4Q9rzy4Xzlqsi7SjHm+zpnT19Vg=; b=bGAiWRuEJU9Py0rzftYdcOmpNtonoJQ6OaZLLnv/6jpxcYjLTbe9yFOjQb73Ip5YvE/CIl91nSJpxlw2286pdNGcrVCWZyIKGHK2pXA6HCWmEYBzooReTYXOditmujvdk21kbS3Q1IZO2HwiWe3/0FCu7zOv3k8vLhHi787T7JsWMFGfPxrzgK9UGqkPRSAfLKu5i+qUVpJmlY2sdWryjRdfNApxtbpiVg8h8uvr6z/4OgqRUMIBw4qcPv/0uHkGHWl74R8TbiymBsDBNBBnc6izyAF4VC2VySrwRQTtN27e2cSVA8aAH1VSZBHqpxS0Sn0ow4JzyDUO+OUbgnLyGw== 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=1qqw0Ux1Me0WhMYb4Q9rzy4Xzlqsi7SjHm+zpnT19Vg=; b=Ara47roVG69bi9Txg3RMBMLL3uJcyl9GsCd/gMR8yVBiypmPxrkB/vf0eczT4c9U5HXvoT0sx8Bz6mQT3Kb4eTziGF9yPHu+8qcVkyT6BsmuXludI+wb+iEG9vxpExZGCtApEUwu+tYLGqML84S0llfKqM5unXXhHf946inY5PE= Received: from DUZPR01CA0027.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::14) by PA6PR08MB10472.eurprd08.prod.outlook.com (2603:10a6:102:3d6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Wed, 23 Oct 2024 10:36:32 +0000 Received: from DU2PEPF0001E9C0.eurprd03.prod.outlook.com (2603:10a6:10:46b:cafe::ee) by DUZPR01CA0027.outlook.office365.com (2603:10a6:10:46b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Wed, 23 Oct 2024 10:36:32 +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 DU2PEPF0001E9C0.mail.protection.outlook.com (10.167.8.69) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8093.14 via Frontend Transport; Wed, 23 Oct 2024 10:36:32 +0000 Received: ("Tessian outbound de6fe3af73ff:v473"); Wed, 23 Oct 2024 10:36:32 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 0cd5e5e52e847a66 X-TessianGatewayMetadata: p4emhExZ6PG/DqQuss+VgH1yYTQLFnZYJVuCnsPic9JMFzYB/CvpFla4LpPJDZSKiG26Tmn3QZii7qXB6tmSBsyurCwQ9VPYc/DFbc6+Vs1ci+AaRqL5ZY4LBOWvUSgLF8d2PNdsGcOfPQVfvifTaa2FglBO6TL+Gm03oS4royc= X-CR-MTA-TID: 64aa7808 Received: from L839503b2cd2d.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 7227BFB1-47D8-41EB-AD8D-B5BAB9568983.1; Wed, 23 Oct 2024 10:36:25 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L839503b2cd2d.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 23 Oct 2024 10:36:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pv4mXzhLRUaYV8lzeoB7YnsHlUAcQ41bWjqeSM4be3bgQqNLIodrkte7t71XAF82ZDDvhCTcIaD4a/l9xE6yZoH0xByVzzdlE7LW+U++WwsqPbWwDbQ41om8lreE63pde1TIzzWFVpMuHFq+/cPx4eeB8aM71C+IoSK1Vze1ZMZbYUyPccy14diQDqHMz4gdyNPo0kQjdQIgVJ1FWWEeritANICTVXdlHtVB43VqgSA7x2CTwfrhBMjUttIVZLEiTh9GnYUYu2r/3fdDXEvTHZVltjrU2rgIn2RsuSpgZM1opHEVJo5/Qx9NBEgVygIZaPp3+AI3qhzBmroBLXlNnQ== 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=1qqw0Ux1Me0WhMYb4Q9rzy4Xzlqsi7SjHm+zpnT19Vg=; b=UcYI8XNdpQAri1yTDg9GqVJ2kAZ0bqn6x56dZKtXVhbPAZDR+wwg/Asr6LxIIIwPi8cBcZE9UJezgZOt4TUxyImGilHUOSFgBzKfO0UAZ1AonPVw+7m/Pe020g+uTBNsA0Ly9bmaM1zU3DG/+2oD69qQ13CsBfiM2j5eJ/4XRffgDhJBP3wLv3+NvrPmgPM962SdmHK/twvo9sy3U9QAxSJRgQKBNiYmZ3P15tVXqMeJL4ADOKP+SjJjIbfoMB1s8wq84TO7Zk3LfIri40ONEM/qtNhlzPiQYXyLZaUFDLDVEqbq84GnUDmQNxxeSxxMp46p2LEHw5MegrtQnZTnFA== 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=1qqw0Ux1Me0WhMYb4Q9rzy4Xzlqsi7SjHm+zpnT19Vg=; b=Ara47roVG69bi9Txg3RMBMLL3uJcyl9GsCd/gMR8yVBiypmPxrkB/vf0eczT4c9U5HXvoT0sx8Bz6mQT3Kb4eTziGF9yPHu+8qcVkyT6BsmuXludI+wb+iEG9vxpExZGCtApEUwu+tYLGqML84S0llfKqM5unXXhHf946inY5PE= Received: from DB3PR06CA0003.eurprd06.prod.outlook.com (2603:10a6:8:1::16) by DU0PR08MB10367.eurprd08.prod.outlook.com (2603:10a6:10:409::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Wed, 23 Oct 2024 10:36:22 +0000 Received: from DU2PEPF0001E9BF.eurprd03.prod.outlook.com (2603:10a6:8:1:cafe::b7) by DB3PR06CA0003.outlook.office365.com (2603:10a6:8:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Wed, 23 Oct 2024 10:36:22 +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 DU2PEPF0001E9BF.mail.protection.outlook.com (10.167.8.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8093.14 via Frontend Transport; Wed, 23 Oct 2024 10:36:22 +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; Wed, 23 Oct 2024 10:36:13 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) 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; Wed, 23 Oct 2024 10:36:12 +0000 Received: from PW070M4K.arm.com (10.57.85.41) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 23 Oct 2024 10:36:12 +0000 From: Matthieu Longo To: CC: Richard Earnshaw , Richard Sandiford , Srinath Parvathaneni , Kyrylo Tkachov , "Eric Gallager" , Matthieu Longo Subject: [PATCH v2 1/4] aarch64: add debug comments to feature properties in .note.gnu.property Date: Wed, 23 Oct 2024 11:35:57 +0100 Message-ID: <20241023103600.500910-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023103600.500910-1-matthieu.longo@arm.com> References: <20241023103600.500910-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9BF:EE_|DU0PR08MB10367:EE_|DU2PEPF0001E9C0:EE_|PA6PR08MB10472:EE_ X-MS-Office365-Filtering-Correlation-Id: 921dc5ee-dfcb-46c2-dec5-08dcf34e8f99 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: sRs0BWNKsOc8h6DlDn9zNvRfIxsIP6EP7JfMmwr4KYyb+J6XK6GvEzUNJiOgCLmJyfuJf6ZhpHHMoaaRNUetCtPhAdnHmPbfWlkWlao/GgmuWy7fid3pP6nN01aTuO81DSZJAbHA+OE2yAHOm3AdVVHYdiRhsGXFy9gH5EwzyRAfrj+mLn8Jb6J0NUEVAg8EVKEwObebc79asO/RMzcenEW5u/MEadXd28QfVx7VTjNm/mfqDwfrgoLEbm6TTG3MeSjb+YzL5xarNmkHuktpKWx8r902gRR3oK9FtV7nwGLXyI3S4uKZ5SrCgZGw0OvIMlkPNMgf6xuCXgBThJkIZXIBWGX1tchPDEy0i/qeBajrgdl4QwsujTc4ZOxoBJahOKW0hb+hffpASqO4nrS6+k9INbZh+YT4zJsq1P1iObm1jvViHZ71e8xhJHNCsyFEQqb8mkkA2DX2wHkum0wHC4hgpZD3I+OpSKBPvPeYqTK+WMwDLWXzD1bDj8r3+gZvPkCacHcIbhHuMAJ0nDA9qnLM7yM6XG6r1Sfg19RfhlnzDKsrPlBaVd+Y0+QF7XGGV7W5swvnxQhwlPSEx/ipcIbcGm/YlRNOKHcXtdtbG/yXZhOnljv/ok8JcNpezbJnVOxFp0TCmQaA3PolxicxTWwHfX8NvTfn3ofYVOe5a1Z69Imoc7JtSKXz8inwjwDyoX8UeTNZ4mKg30Dl6KWEwaB6LUCfwOe+Flp+Bsh6OoCUvH+7eTEDd21jbCYHErcTGC3L8z1tqYxusl5xKupyXutbSGAJ11Xod5IBo+UzFXE8wC50WDkxC9doll5jFrb9MOwSmsxrnUe+E9t/4yiHfx4Q8AFgJ0SHAfT/X2uVKQyjSDzf2Ry1cI+X38MHJADxHAwyjMR7aEnnI1D6ySKWJ/t47IqmMydO+lymslH/CVG4fSsQpuQTlHCh/g8euT98JimBcwHhG52dGiMta9QDZgirptdriDey5VgS5DSdYmMjZ175FHyYHJRZ5HB5/eb4RbKm0ZkK4Fem6vFOkw1l86ZBg3fcuCWUCwnR2j3ezFtgDqdszsQMyUSE9vz/vPlOoChln48tOwLmGOtYIbCJfY0iLxo0XxrIr1LIndv/T/8PeQO606lNPABIByO/J0v+N5al08cloliYTyFsK+492nS1TyvyI56834aSp2FZNSsSbNCe3MIv86HAufIbY7YTSPkTmAE399KHMqI4xSAhhM1/NmEdqLPTsP/hWK7oIucVqA++rgfMJPS6ZX+1GNqmeYsXH7MlRjTkuRVMBGx8FCmx8hByn0zr8sYG1/OwH+1o/6WKnnDEoAWPqHGQm6T0IAQvDsvyrFSTGVAzqLg7D3MKhaYT5qrIGZCGv75AJdo= 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: DU0PR08MB10367 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:8:1::16]; domain=DB3PR06CA0003.eurprd06.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DU2PEPF0001E9C0.eurprd03.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: ddd91202-ed9f-46e2-a0e2-08dcf34e89a7 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|1800799024|35042699022|36860700013|376014; X-Microsoft-Antispam-Message-Info: UuzobPhCwObU0dlZMWZGq3bdxgiN5WtXHsL/8RzMUBxvt6WrTvFWBE1tmW5ShqugZUp6hqFBvzF3N2SOT/YrupfEp15UOODB3YICdERGBqyGjDN4yB4TKFpam9YPpwiiAPtpNiEl03/8OZYgOiJedtHWLMYy3lqD501RGPUZfXEmTQaZEnbGuFeVGGY3afP9MC6W1SH0i1qyQiMoBVVYWyElImRkzj7lZADcM+pai44wG/KIJd/lH+gb0N0mx3Ioy8hRAvUOx1SDHp8RCLMHl+iZW+uxZh6CrxvI1RDXyxldkJsATe+NBsDBMEk/HfZ//2CYRJVhIRhfKwI2xv7YSGfnfgRKqugsypuZ2+m5XhqgE5BsCVAJU1uIWTVXn1SrNPr4nYAsutZMsbZjZZ9X6xuO94QjHCk19bhCeE4XkrrgB9rYTaJoeol0cF+Giq0vv1Ql7CwCHp1VI4+aTZSYmwTtSm4OQKcqw8ndCgOIy/eTT5qXwNeZnmGTZ/XrlzV1I5uftbBKlk8lfDUNBZ1bztT8fxyU7EVIZR7HMm7kliiUAMnaxbAfavjqNIUSemk/BZJ9zny8NE9/6YRdT3pDRRalEcFp7Sjs7F0/p+fEwGbL0ycgtLa5THfANYO3gpoIW+q643HxdONCcoh/xS3bUWJawUo9bH/uUtCTI3qgmljOWkfSc/3vsWUp571fv5JRFqPJ6AuosDcaPz1GYxoHCpuwmRqKDKZ5dNH6/Q39ZktGysSasYHNJS/Vk1SXcrG3fWZ9tR2HJXFN/vkurklUh0Ru7gfA0pTsAaZ6OY4Eb99xkNuPVgcb/RxMS5jKwvV72VMG3AgPOGQUIqONt+ZbZfljLoeu5KfKBIrOANnZNcut/lGwwIfHqWMA/N9rNf1YZo9bmoYc+bu55+EXsp/Oo3SW6i0QHXluRAi0282BibjdZrFm5f7yi+HhW4fkIidx2Xdnfj68tfwj9iklucADG27/AWt37/j4zpniIQN9clV6fVGGEEBQ59sMGur32mrZrRHCnH+GiKfa071z+PLOFSPJTHbfnHF7cKVM920tabRy9AXZpwgYe4qnaMy01MiNB3krTkDag0YYHTYmcyUHxIMtaRA+99a2DxGWepipN+3O2PzU0KKgdQJX7vL/657fXtNVc2iT84WMh2xJ+AqqGEumIBd5CnTSYn19hUw1YeHiQp7r2Zftla6WZhDAGaCvsMijcNdu2uQrSdCKQxA2kGQw/4x1FOdt2vzyEZgICRIoqNB70IH0RbYnaCRymNPHrZd6WPK/rUa8CzPajnpO7yRwBktd/XYP+qZmaAaQ4AfxT7wjkj2DnVZSCphIse1wCKQJIuN3RmUifwUkRdE6haqXMy+88VNnQ4K8bKgxkXA= 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)(82310400026)(1800799024)(35042699022)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 10:36:32.1992 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 921dc5ee-dfcb-46c2-dec5-08dcf34e8f99 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: DU2PEPF0001E9C0.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR08MB10472 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FORGED_SPF_HELO, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 BTI, GCS, or PAC. However, no debug comment are emitted in the generated assembly even if -dA is provided. It 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 BTI and PAC are enabled, it will emit: .word 0x3 // 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 | 35 ++++++++++++++++++++++-- gcc/testsuite/gcc.target/aarch64/bti-1.c | 13 +++++---- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 914f2902d25..0466d6d11eb 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -29259,10 +29259,41 @@ aarch64_file_end_indicate_exec_stack () type = GNU_PROPERTY_AARCH64_FEATURE_1_AND datasz = 4 data = feature_1_and. */ - assemble_integer (GEN_INT (GNU_PROPERTY_AARCH64_FEATURE_1_AND), 4, 32, 1); + fputs (integer_asm_op (4, true), asm_out_file); + fprint_whex (asm_out_file, GNU_PROPERTY_AARCH64_FEATURE_1_AND); + putc ('\n', asm_out_file); assemble_integer (GEN_INT (4), 4, 32, 1); - assemble_integer (GEN_INT (feature_1_and), 4, 32, 1); + fputs (integer_asm_op (4, true), asm_out_file); + fprint_whex (asm_out_file, feature_1_and); + if (flag_debug_asm) + { + struct flag_name + { + unsigned int mask; + const char *name; + }; + static const flag_name flags[] = { + { GNU_PROPERTY_AARCH64_FEATURE_1_BTI, "BTI" }, + { GNU_PROPERTY_AARCH64_FEATURE_1_PAC, "PAC" }, + { GNU_PROPERTY_AARCH64_FEATURE_1_GCS, "GCS" }, + }; + + const char *separator = ""; + std::string s_features; + for (auto &flag : flags) + if (feature_1_and & flag.mask) + { + s_features.append (separator).append (flag.name); + separator = ", "; + } + + asm_fprintf (asm_out_file, + "\t%s GNU_PROPERTY_AARCH64_FEATURE_1_AND (%s)\n", + ASM_COMMENT_START, s_features.c_str ()); + } + else + putc ('\n', asm_out_file); /* 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..53dc2d3cd8b 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. */ @@ -44,8 +44,8 @@ f_jump_table (int y, int n) return (y == 0)? y+1:4; } /* f_jump_table should have PACIASP and AUTIASP. */ -/* { dg-final { scan-assembler-times "hint\t25" 1 } } */ -/* { dg-final { scan-assembler-times "hint\t29" 1 } } */ +/* { dg-final { scan-assembler-times "hint\t25 // paciasp" 1 } } */ +/* { dg-final { scan-assembler-times "hint\t29 // autiasp" 1 } } */ int f_label_address () @@ -59,6 +59,7 @@ lab2: addr = &&lab1; return 2; } -/* { 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-times "hint\t34 // bti c" 1 } } */ +/* { dg-final { scan-assembler-times "hint\t36 // bti j" 12 } } */ +/* { dg-final { scan-assembler "\.section\t\.note\.gnu\.property" { target *-*-linux* } } } */ +/* { dg-final { scan-assembler "\.word\t0x7\t\/\/ GNU_PROPERTY_AARCH64_FEATURE_1_AND \\(BTI, PAC, GCS\\)" { target *-*-linux* } } } */ \ No newline at end of file