From patchwork Wed Nov 20 18:24:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Longo X-Patchwork-Id: 101596 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 A0BEF385841E for ; Wed, 20 Nov 2024 18:27:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0BEF385841E 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=e8bvkxeR; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=selector1 header.b=e8bvkxeR X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from OSPPR02CU001.outbound.protection.outlook.com (mail-norwayeastazlp170130007.outbound.protection.outlook.com [IPv6:2a01:111:f403:c20f::7]) by sourceware.org (Postfix) with ESMTPS id AB048385841E for ; Wed, 20 Nov 2024 18:25:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB048385841E 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 AB048385841E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c20f::7 ARC-Seal: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732127113; cv=pass; b=EYnh57eZvJ2reLcg/wpZJh5pqQPrgzn+3z/gpyWwFK2drVnAPPvAQmVGjC6X2FwzT66DgzAi9HgGMpBQR1ru7RvcHSF7Q29HYpMsKwnGK2Dtnojr+b+gPcaIJEs0AZ7V9mHxiDgWpN7KPERR7xyQ94Tg6qbMtOCdcKlJHRGpCQc= ARC-Message-Signature: i=3; a=rsa-sha256; d=sourceware.org; s=key; t=1732127113; c=relaxed/simple; bh=byNsWVTgEK1x1wS+pyVnR0cNyJ4kLcKIdxTDGdYAEt8=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=HUymWkfqQl9nxfXJZieuaaS5Lh04OWAwhG8e5u5j4SahMG3XzNWXJGAq77THF41RZFByH4nfzjY/oxBqxVZLAaiTwjErq6K/15txP08muvcaa6PRwBHDRKsT2Pcczd2pA7dIkt6txGmug6SRmEDdmIXWRSvyTQHo62KHjadHMzQ= ARC-Authentication-Results: i=3; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB048385841E ARC-Seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=rOU/e1GcriH9+NPtaFqtnCBpXE1/qbzRY6qsKL/p2BBi21XVSRnws7ab9PLhpAwmHg/WxfprqgHjFPTg5ir0LF+BqMQRFgMO4oGaChVA3tP2OqMWaMQfqIX4e8GVNko8mnbcJEb/CbeiFRJTSw7TjEt8aWyM1Od0Gz+/iG5BAdyoVBFLJcEFux3Gkt9pP4qSusvY31FZbb007Vk2Wz4u0bbrWzi+hr1QvzHfuSxnAYgK5+O/4emFHDEiGZqCoLkpAMwBIxO+VAh40y18frswNRRqUChSwjDZumjfn7RzVnC4F8kIOFtG1IM6qWhMmrITXfHC7pi62HAlC2a8h7YnTg== 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=K/oNVYOW5K6SZVQ6007FCU0ekLk3h7qtkz3rM4cBBrQ=; b=s9m/Q95cy+Tp+UfRd7G/6ZwQQ6ciSG7OpRP/C+2LNRMJChS8ng0H8fBpSLKNFQG12m6chqPj36uAte7+A/2APQemkEm2dhD1Cik70BBnsq7CAI7b8M9K+a6lf8QMZOHoWTCaS5KfY7XlJZg1ZxOnSJqrGjlBj02VdZ/33w0ZQEujVSRbTapyc+/oyX7OTzsEy2DZWLbOVeSZ8NRxYW84lut2FJKBzjGHF8VYyMt2d0A4PV07h36ilfdiL4l1ZXEQvj+OI79B6TmZTy1AutA4k8yEzJ+bJHGxO/4NhmajwUt8gZMmCRKG4/0pSKJoTgAB3JnP7ybol5lqnxD/yM9LcQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) 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=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=K/oNVYOW5K6SZVQ6007FCU0ekLk3h7qtkz3rM4cBBrQ=; b=e8bvkxeRoVpMmyDqCwDZEtMkuZ1L7Ew+ZB4lutaO6yZdKnc2+YWKDl4Kn29s+7nG78/5orDYjqs9RSw5QcWTQOSfcUro4JcnsxMzbmJYoJKozADgTK8SdpvEXFws8ZY4iRINON0khVLa8E67hNUMZY0xlYxNqgs8g8jfqWx5nVg= Received: from AM6P192CA0023.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:83::36) by AS2PR08MB10226.eurprd08.prod.outlook.com (2603:10a6:20b:62f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Wed, 20 Nov 2024 18:25:09 +0000 Received: from AM4PEPF00025F9C.EURPRD83.prod.outlook.com (2603:10a6:209:83:cafe::31) by AM6P192CA0023.outlook.office365.com (2603:10a6:209:83::36) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8158.23 via Frontend Transport; Wed, 20 Nov 2024 18:25:09 +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 AM4PEPF00025F9C.mail.protection.outlook.com (10.167.16.11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8207.0 via Frontend Transport; Wed, 20 Nov 2024 18:25:08 +0000 Received: ("Tessian outbound 6970ca6dd121:v490"); Wed, 20 Nov 2024 18:25:08 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3cfa8a3a4ef91f0a X-TessianGatewayMetadata: iGaen2y5TJAZcg7OPBZJg5P39+rrmkOASKurbXIXn85fbWT0IbxxbaCqmKdHmPBHfU7Esg1F4Y5ReJTlSjZd5kn+ndTXpb2Zl+zAEI5D0tZrtl+jDv9Q1jbk0JhJxPCLFqqg/bL6GZJczBIWfyovGzr8Y1wbgc26gNiZBdrErW0= X-CR-MTA-TID: 64aa7808 Received: from L5e3aaf1479ef.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C32FD09C-DF87-49AB-AD95-A26C5D713E5C.1; Wed, 20 Nov 2024 18:25:02 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id L5e3aaf1479ef.2 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 20 Nov 2024 18:25:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WIR6DEeLLxDEw9nz1+bHB6oPngFhXSQCP4coL2CVub+aXFxDgOeDCRZCBtTytOJnkYCuGslLSW7/yXegOsY0nwWINHDS7UJfDU5jq2STBsPlPBsKghviclnsPjFZwCXFMfB6xHFtGs6L3shBSUhvFOkvuCCN5dz51o1a5j1gVPbluvhs8cm1isWcGyf3jgWFwuXMu2/LkWuiD+fEvLnl9TpMmGBs8oFxmsG2O4kU5ebrw5R91r91JeFa8kBydqe/EBWWChheQF8Cxro5kHUmH2jl6Ph3WsXNOF+qL3pDbbzA0v368HILPR0lheFMeVNFbbhs1ldtwx7UwBAZGDRc6A== 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=K/oNVYOW5K6SZVQ6007FCU0ekLk3h7qtkz3rM4cBBrQ=; b=E04wMS5NI1kBzhBHs6OrtrF7g/l6AP1vuJpE34W9wMF+0PRitvv3SaCzp+yUWu/hqSG/txlv9DpyYEkDL1tAqO6qK1oAn+kJmRjMQ7frpObGzViGgfbUelb79SXtDSeUTkEzlzPrDloYUd31r4KBEQaY+B5WtN1Z32qWmpThuwnx93Jg4usGNX6/uSOqyo+/qxsiFbJdEhbzdkdvhOvn4Bc3zFMkXhpjAoKuoxpltbETCrM7X3Lmq2OYcx9MA+YhsICdNMNayzNRCAKf6rbQ+uxzoQ75JrygcVKtt87xv84l3K8nuEIp+4tI7LCNo1uIvHVLhompf/2B/ClYb68ikw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.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=K/oNVYOW5K6SZVQ6007FCU0ekLk3h7qtkz3rM4cBBrQ=; b=e8bvkxeRoVpMmyDqCwDZEtMkuZ1L7Ew+ZB4lutaO6yZdKnc2+YWKDl4Kn29s+7nG78/5orDYjqs9RSw5QcWTQOSfcUro4JcnsxMzbmJYoJKozADgTK8SdpvEXFws8ZY4iRINON0khVLa8E67hNUMZY0xlYxNqgs8g8jfqWx5nVg= Received: from DU2PR04CA0322.eurprd04.prod.outlook.com (2603:10a6:10:2b5::27) by AS8PR08MB6374.eurprd08.prod.outlook.com (2603:10a6:20b:338::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Wed, 20 Nov 2024 18:24:59 +0000 Received: from DB1PEPF0003922F.eurprd03.prod.outlook.com (2603:10a6:10:2b5:cafe::c1) by DU2PR04CA0322.outlook.office365.com (2603:10a6:10:2b5::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.24 via Frontend Transport; Wed, 20 Nov 2024 18:24:59 +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 DB1PEPF0003922F.mail.protection.outlook.com (10.167.8.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8182.16 via Frontend Transport; Wed, 20 Nov 2024 18:24:59 +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.39; Wed, 20 Nov 2024 18:24:57 +0000 Received: from PW070M4K.arm.com (10.57.28.12) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 20 Nov 2024 18:24:57 +0000 From: Matthieu Longo To: , Jan Beulich CC: Richard Earnshaw , Nick Clifton , Alan Modra , Matthieu Longo Subject: [PATCH v4 1/2] gas: add new command line options to control diagnostic information messages Date: Wed, 20 Nov 2024 18:24:43 +0000 Message-ID: <20241120182444.284872-2-matthieu.longo@arm.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241120182444.284872-1-matthieu.longo@arm.com> References: <20241120182444.284872-1-matthieu.longo@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: DB1PEPF0003922F:EE_|AS8PR08MB6374:EE_|AM4PEPF00025F9C:EE_|AS2PR08MB10226:EE_ X-MS-Office365-Filtering-Correlation-Id: 982f2019-5e0f-4abc-210d-08dd0990aa1c X-LD-Processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info-Original: 3Sfu3pa9ipYRVppJ7ji3SasuOlXBpRTsA+dQR2j1o2oBi+JYgG6kBLt+KhkjvXici3tUOJFqR7nF7ULlLxTjmc700rGl7AYzd8EoRXB2qe4rvkuon2sCGKEsPOxLoqPJC+7dGyr62Ynpd7ckGZctiICWDDYpprCEWHlaBDw3XqKYq35vCjqoE0IwqHkk6mpBmIMrzsVCAzsKu9pcB2FfWKcdmGWe0AO/XYehnZVzkCXRBYjkLQzFSYvEiuEBplhplJ6juzxVfaZIlRYT9i1mKu8Jh637M378F8F1fcMSglPB2ykx/mFoTYIhXttmFs7PWU/KwV54FWTzlbtiBUuUbALnh3Fw35iEx36MJKwLeWyGw3BI8tVacgSNm6Hful5cNylKUz8hjqwYE9Nv1apumCwdxEK2VlQ7RGNq2r9P2TPQL4MSeKhpmhzByOhzNlGkUgKMIjLwft57jJfsDtYIj1KxcKyu3QU7L5nyhgCagQZr4Vdh+yUEjngLHQTzzWsh0V1RAt+5Bwlf9MnEbnwZB1bpx8zJWyKUOG7sB7INW5AyltIe4J/YbnT9gY3pohvxYk2YzRpuzJPqSN+phZ6yfvbjS1OK9+BmUuj5AccMl22dONHBnvrJQW1x6RhByWgoIY48dFBBnTBqrwdNcGfpMIAGmV89sIgXBG/dMim5Ksnctx68Zdi3aFu0AJDW99ZkxFUFXc3zFzLmhJTM5aBJYo1EZ/KkbFjUIbVwET0L+d7GPyhwVQiITH+75PQdIxaAustrQq3k+BxLk5xQehZd0KtFKl1mfngnE94Ont7YjD9Wcf7fQU3iqqTuvNWlRvKdX0JhPwA0X0s2JZ5rrzhjmFeDlmIp15xVV6Vmar0VmcgUeLI+i6CvsgAif/ABxz3FV4aQeAdjvUvcy2deahC0OEkQdkahx2LacJylQdZVetLy7Tn25voXjOVyk/E5/A//gz583XIZkayg8dp1nyf5F0I5jNAd/Dmn+jT+joW++vOAu3hwcampOo7B+lKGhYqUYeonJvDkUIpjOQqq8bxQQudQWIJmKHIsYZ3JoL7Bgy6yM/gS7V4OfbxcS0mp7ll2i0ulWd3C+9D0dGejbQ0868xmOl7eCOO9etpOaLZ4Trx1OXztUQE7kbYla+txt43LatwIhHFJTqd7573Mp7cHBFNGnSWHEdjqjFyS3TLvgPD667fNIPHJXgrcOY5u5TrQ89xpiBVyyYpDDQmI1MMFM+OxAV3Z7jVEyzb6t6NTSBYwCrV1Gma+EQHBNxJcrHFcLb9XXqlH5oE4QDZJa8PSoLMekZnRvD4ZBgQPCMcTrDBA3VnokZSo1a9Jxvz3e9gTCNNNS1gAssPgYtZNl4tQr+BdxYBbU/nOtyJcIoYqB5sc2u49j2S86cb06Bq1Ku/FxUI/RW+jgl5WjBm1oVXg7Q== 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)(1800799024)(376014)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6374 X-MS-Exchange-SkipListedInternetSender: ip=[2603:10a6:10:2b5::27]; domain=DU2PR04CA0322.eurprd04.prod.outlook.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM4PEPF00025F9C.EURPRD83.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: c683d930-af73-493d-8ec6-08dd0990a420 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|14060799003|36860700013|376014|82310400026|35042699022; X-Microsoft-Antispam-Message-Info: DdhSxWkUNxPEooaB7JI/UFffok5hovubWMDSocuXqTVC8wHXntmjdsVao9hxmV+loaMeepayD/3mFYytQCygIUAT8kU0DsvPz7mkd3H6sJXc51/vYStQfVzilrexCRHCmjZt7rh2zlzW/xj30SV4tHjJuIq8XYJ1lGfOj4ZaoPjrNu6iycHHYyJxXYjttNTHPr5RTbskISEyb6hk8lCtx7ydJbkpjNTuwo8Ih+yk7WPKdfmXBBRahRD/PZ9mRS6nCqw3GxYzd5dsvopA3RHDvfeFoIZC7vnzcoAwYtnAnc31XEkCK0g4/EJ/RnEAacw1ktxshyz4Uy5cI7TkpgFAxXJ+9sJ+aZ9B0OFzKLWjTLd73boeuKaLmXvrMsvPpJju5PDjyl9LNEdHmkcck+GrOFw12uKjVCQQRGfEBwVDfhtz0MA4EnZU7DCZ10CttjYwkvnG3Qi1GuUneWRElAuF7HnkqX1czQyM1Un/Pxv7JZ/Gk14iUOz3rqXY2Vgu61uqVd1AKvyLjlESHISgvdOVRQNGej5nPIqpAi7DMHD3tsF1p/PGeC0K6BMHsGnAIvrFOT6sX3N1zGl9Z6H47dtBIepOc6crNvzgOn1WY69T1De+oXwPRariRLfHNLKqSPsH7xVzMaqW+7fIR/w0VgreSUedsFvbjq+EC2/7tdkEnCCs6Xmoj7X8xrpswReCxqwRE+1ymzzDO0eisYb/N9OxWuuUCkXLl3auVNr9polj0aJ4GqV/IZDYuehveA297yvlWl8qz7l1AUNh54I4pWd+IrCxiWti6M1z1CAupx8DTId5lX5hMST+CecMSPyq9FQSOSe1GLyziDAsaZUnbMOU7bnohhNi1X0dbBfGCHylaCcqGaKy6TiMRSQE0AFaW96HRHCAY6RErUVUO+tFMvSjRmPb0n1A4BNE+kw2XspoIyd5kn6f406mQ5bjdw501qLAvDU1s0ThQ46NBoHRkU0eIML5z7SGeSsQyPJfodWmIrcGZGNug8qxCVnY9AjTwK8wkzkktrjeU0qR8RmVn/Bc6iQY0PGD1N5yUT4l/njMcAhtQ+cSlR8ZF6yMVlcwmNT5gCyYdNLUXMuZYtmv1juc2nzGJ6a8XVb5HyzA51deh4MQnAcszvuV8Op3sGOZyGFSasNBUZysmbZ97pTOUzrTc9sRCLMR5PVZVjaiDKldEmKkzBX8zrmlgMluRo8GO7q9892MRtR4TfMBT9B9uixa3KBi5Eqqs8oVpIzR7s6zT2R/hi2UyNllSMCUWk7svk8cgaKeOBu9w3pMz77FGP6N+5adt7I45Bo4+HFAFGJ2EgYGprtFeRYSNuteTuOeADu7Lw/QFFLxg1E7ndf9xgbXR+ymtdkj9/3dllitXSf392hVRd7sLj8D+7GzbaW1WtVGBXgeEoUUjCgLjzvL2lsA0Q== 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:64aa7808-outbound-1.mta.getcheckrecipient.com; CAT:NONE; SFS:(13230040)(1800799024)(14060799003)(36860700013)(376014)(82310400026)(35042699022); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2024 18:25:08.9608 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 982f2019-5e0f-4abc-210d-08dd0990aa1c 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: AM4PEPF00025F9C.EURPRD83.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB10226 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org gas currently emits information messages for context information along warnings. In the context of system register tests in AArch64 backend, these messages pollute the tests when checking for error message patterns in stderr output. This patch aims at providing two new flags while preserving the existing behavior if none of the options is provided. * --info, similar to the existing --warn flag to enable diagnostic information messages (default behavior). * --no-info, similar to the existing --no-warn flag to disable diagnostic information messages. It also adds the flags to the existing documentation, and command manual. --- gas/as.c | 18 +++++++++++++++++- gas/as.h | 3 +++ gas/config/tc-aarch64.c | 3 +++ gas/doc/as.texi | 34 ++++++++++++++++++++++++++++++++++ gas/messages.c | 3 +++ 5 files changed, 60 insertions(+), 1 deletion(-) diff --git a/gas/as.c b/gas/as.c index f20b1e0cbe5..2ef18a084ce 100644 --- a/gas/as.c +++ b/gas/as.c @@ -382,6 +382,10 @@ Options:\n\ --warn don't suppress warnings\n")); fprintf (stream, _("\ --fatal-warnings treat warnings as errors\n")); + fprintf (stream, _("\ + --no-info suppress information messages\n")); + fprintf (stream, _("\ + --info don't suppress information messages\n")); #ifdef HAVE_ITBL_CPU fprintf (stream, _("\ --itbl INSTTBL extend instruction set to include instructions\n\ @@ -499,7 +503,9 @@ parse_args (int * pargc, char *** pargv) OPTION_NO_PAD_SECTIONS, OPTION_MULTIBYTE_HANDLING, /* = STD_BASE + 40 */ OPTION_SFRAME, - OPTION_SCFI + OPTION_SCFI, + OPTION_INFO, + OPTION_NOINFO /* When you add options here, check that they do not collide with OPTION_MD_BASE. See as.h. */ }; @@ -575,6 +581,7 @@ parse_args (int * pargc, char *** pargv) ,{"mri", no_argument, NULL, 'M'} ,{"nocpp", no_argument, NULL, OPTION_NOCPP} ,{"no-pad-sections", no_argument, NULL, OPTION_NO_PAD_SECTIONS} + ,{"no-info", no_argument, NULL, OPTION_NOINFO} ,{"no-warn", no_argument, NULL, 'W'} ,{"reduce-memory-overheads", no_argument, NULL, OPTION_REDUCE_MEMORY_OVERHEADS} ,{"statistics", no_argument, NULL, OPTION_STATISTICS} @@ -583,6 +590,7 @@ parse_args (int * pargc, char *** pargv) ,{"verbose", no_argument, NULL, 'v'} ,{"target-help", no_argument, NULL, OPTION_TARGET_HELP} ,{"traditional-format", no_argument, NULL, OPTION_TRADITIONAL_FORMAT} + ,{"info", no_argument, NULL, OPTION_INFO} ,{"warn", no_argument, NULL, OPTION_WARN} ,{"multibyte-handling", required_argument, NULL, OPTION_MULTIBYTE_HANDLING} }; @@ -955,6 +963,14 @@ This program has absolutely no warranty.\n")); flag_fatal_warnings = 1; break; + case OPTION_NOINFO: + flag_no_information = 1; + break; + + case OPTION_INFO: + flag_no_information = 0; + break; + #if defined OBJ_ELF || defined OBJ_MAYBE_ELF case OPTION_EXECSTACK: flag_execstack = 1; diff --git a/gas/as.h b/gas/as.h index 3d5f710c5c5..5b337fd494f 100644 --- a/gas/as.h +++ b/gas/as.h @@ -323,6 +323,9 @@ COMMON int flag_no_warnings; /* -W, --no-warn */ /* True if warnings count as errors. */ COMMON int flag_fatal_warnings; /* --fatal-warnings */ +/* True if infos should be inhibited. */ +COMMON int flag_no_information; /* --no-info */ + /* True if we should attempt to generate output even if non-fatal errors are detected. */ COMMON unsigned char flag_always_generate_output; /* -Z */ diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index c706f920f15..464a727be00 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -5667,6 +5667,9 @@ print_operands (char *buf, const aarch64_opcode *opcode, static void output_info (const char *format, ...) { + if (flag_no_information) + return; + const char *file; unsigned int line; va_list args; diff --git a/gas/doc/as.texi b/gas/doc/as.texi index a5535845e40..d56677e60e4 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -243,6 +243,7 @@ gcc(1), ld(1), and the Info entries for @file{binutils} and @file{ld}. [@b{--gsframe}] [@b{--hash-size}=@var{N}] [@b{--help}] [@b{--target-help}] + [@b{--info}] [@b{--no-info}] [@b{-I} @var{dir}] [@b{-J}] [@b{-K}] @@ -873,6 +874,12 @@ Print a summary of the command-line options and exit. @item --target-help Print a summary of all target specific options and exit. +@item --info +Don't suppress information messages. + +@item --no-info +Suppress information messages. + @item -I @var{dir} Add directory @var{dir} to the search list for @code{.include} directives. @@ -2446,6 +2453,7 @@ assembler.) * alternate:: --alternate enable alternate macro syntax * D:: -D for compatibility and debugging * f:: -f to work faster +* info:: --info, --no-info to control information messages * I:: -I for .include search path @ifclear DIFF-TBL-KLUGE * K:: -K for compatibility @@ -2558,6 +2566,32 @@ preprocessed (if they contain comments, for example), @command{@value{AS}} does not work correctly. @end quotation +@node info +@section Control Information Messages: @option{--info}, @option{--no-info} + +In some cases, @command{@value{AS}} might give an additional information message +associated to a context that generated a warning or error message when assembling. +The information message provides additional details about an earlier diagnostic +message, usually in the form of some context (such as when the earlier diagnostic +was within a macro). +All such informations are directed to the standard error file. +This flag only affects the information messages, it does not change any particular +of how @command{@value{AS}} assembles your file. + +@kindex --info +@cindex diagnostic informations, switching on (default behavior) +The option @option{--info} is enabled by default, and enables printing of additional +diagnostic informations. + +@kindex --no-info +@cindex diagnostic informations, switching off +You can switch the option @option{--info} off by specifying @option{--no-info}, +which disables printing of additional information in the context of an earlier +diagnostic. + +Specifying @option{--info} after @option{--no-info} will turn on again printing +of additional diagnostic informations. + @node I @section @code{.include} Search Path: @option{-I} @var{path} diff --git a/gas/messages.c b/gas/messages.c index bbe2596f27b..17835d1c251 100644 --- a/gas/messages.c +++ b/gas/messages.c @@ -138,6 +138,9 @@ void as_info_where (const char *file, unsigned int line, unsigned int indent, const char *format, ...) { + if (flag_no_information) + return; + va_list args; char buffer[2000];