From patchwork Wed Aug 14 17:00:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1972480 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=selector1 header.b=n+crGMuC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WkZK341TRz1yXl for ; Thu, 15 Aug 2024 03:01:09 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ECE8E385700F for ; Wed, 14 Aug 2024 17:01:06 +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-vi1eur05on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2613::601]) by sourceware.org (Postfix) with ESMTPS id C11193858D20; Wed, 14 Aug 2024 17:00:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C11193858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C11193858D20 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:2613::601 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1723654838; cv=pass; b=L/Q2IHlFS5jacwlo2EOfOu+rr+729g4UkysydLqzcIb3a8HjCaDf0HnsuLlMXv62RQjAt9eTHjCe2bOASZBSIiSjG70wL9fQ4V3T6jDjng0PvkqAHr+HIe7S0tUn6LAVZkHQDlUoPBWMUdpIwJcf7MnMyw6XHxOb0571mF9+85Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1723654838; c=relaxed/simple; bh=aoArGuekfnvPbXXwV6v1XizUkWo1FEyXefBe0N2GCVw=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=XtsgecroAuBFf2oyGOdCfKsn+Niafl8ajVz4F3LRVKmE94Q/JyESrgHkDRGnEGeo07B4PX07kuRkEgxH2It4qaiN4VluZ6poN9jE+Sy2Npag9uHo6fJE5Ixfm+Ime0Xk0LkZBnvdj7wScFK4cMoVQ1pDHLXrauRmgt8vLtqUGXM= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wY2OsnfRsdAHF9RT/JvlCzubSxGjU0UaXB+KzKWafhIHBpN+qEchV/Fqf51QIkhmORtLo4DN/RoF+DHUfLBBy2n8Vb878QniOwewyAs6qG+oKi36jA6BVa75AiXd9WQ4qDRbmvRwB+wNdnrKQ67OEWpxPlOdj6mcq6mhOse4D86EoLPk530YL9JnA44JQWZHxGVewYuqPprsBfkbLyy+XhJm3Y9Tt/Y4hqJ9N1W0KbCYV9MVVZuvwcCRFDuQ2mmNmS9EvjaaYyXJ1RAF1Xtm/70bWvHeRpt9mT1PdhaK+/Yj7MyB5dmW9lh0GDlgmm123VvdMRSgAUIbH0u78rq31Q== 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=iwoOzggBojIx0CAZb674D85RHQc4b1UcCk5GfOIMtDU=; b=xzl1nUyflgYRuS2yNH/KGoI5AQZaSD00nr8Y6i8G4ZVv/lPkgM8KObAke47gFAB6CUlNU3nTbY5CYJSSYHRrx6Mk+OhXkbZTANit6eJEPLHkOi0pBQSmvoSNBN+j6QCuvyw7QEe40oSqF/2EpHWxmmY5pheaRyYTQQC+OP+reyq7eqAIdPo+i+BTfI24O2ruX/NVN+NehD2iFI+qFGsqB4ki9/hP7GchrHw4ZcuclNwC0D8kErqeL1GwJZ+uZwUXPTnf5MsCRBK9/gv13tYTwToB8B7pezEdvPqOa+ixMoPEHOg4LOpFewBnXOA6cXEB0QhUB4opcyC7jBOfSi38bg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iwoOzggBojIx0CAZb674D85RHQc4b1UcCk5GfOIMtDU=; b=n+crGMuCOavJupt3ertIwnoD51YGUQ4CkhhqD7rSA6YA1xFCeuD/8xBw8lWUUCGmgt00wII9uQiL+cwYqal9GOeQsLT+SFb+gOF5y7L1owCgNmwHoEvNpTHkZk5IE/0fU0yiGIUuflnZEX863PgYMkAcjaeZjfHQxIhuyTZ6cg4= Received: from DB9PR01CA0011.eurprd01.prod.exchangelabs.com (2603:10a6:10:1d8::16) by AM9PR02MB7025.eurprd02.prod.outlook.com (2603:10a6:20b:273::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.16; Wed, 14 Aug 2024 17:00:30 +0000 Received: from DU6PEPF0000A7E4.eurprd02.prod.outlook.com (2603:10a6:10:1d8:cafe::24) by DB9PR01CA0011.outlook.office365.com (2603:10a6:10:1d8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.23 via Frontend Transport; Wed, 14 Aug 2024 17:00:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DU6PEPF0000A7E4.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7849.8 via Frontend Transport; Wed, 14 Aug 2024 17:00:29 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 14 Aug 2024 19:00:28 +0200 Received: from se-mail02w.axis.com (10.20.40.8) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 14 Aug 2024 19:00:28 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 14 Aug 2024 19:00:28 +0200 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 4BCF3117; Wed, 14 Aug 2024 19:00:28 +0200 (CEST) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 4421D2044C; Wed, 14 Aug 2024 19:00:28 +0200 (CEST) From: Hans-Peter Nilsson To: , CC: Subject: [PATCH] libstdc++-v3: testsuite: Prune uncapitalized "in function" linker warning MIME-Version: 1.0 Message-ID: <20240814170028.4421D2044C@pchp3.se.axis.com> Date: Wed, 14 Aug 2024 19:00:28 +0200 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF0000A7E4:EE_|AM9PR02MB7025:EE_ X-MS-Office365-Filtering-Correlation-Id: 5662810b-05cb-4a7b-8593-08dcbc8299e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|82310400026|36860700013|376014; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?zRBcaBLu+27LyuMR/uprhw446f?= =?iso-8859-1?q?bDGID57uBVoB8NyIKVQxvADnt2VfLCAOoI5P/GqhmRAK1Hnd0UTXudJzFp84?= =?iso-8859-1?q?Pp3tdnvJtM2gO2ZBfPLIZWbCNrx4rvVFGZ+Q7c85XxyZ3BMBjUSzZXn9abJl?= =?iso-8859-1?q?Zxq3eU6K1B4AXpsgLEtQqYEAIId1BcDhld8MnXYltJfAHYJyqDrRfoZkbUdu?= =?iso-8859-1?q?IF/exfLHm+Lqaax8BZkWBfCmOoleMSMCtDhHCqy6nIHQ4mdrzDMqdWAb9zjr?= =?iso-8859-1?q?uaH8gR0J96jquIeRcGTTOuXW2MzWg+um3RAyQcjvyO2Vc7nUdqRLQ6sl0FRk?= =?iso-8859-1?q?W0KzJkUgJyUMVitJCW//3dnAKVtNidPmxmMWKpoZNucgzYUK6aYNBWrc6ubH?= =?iso-8859-1?q?fBVe0QTdslRfqZ1Fe/4cEARfHGLEmgq4lgTm7fe0L99Mrfoom5Mlki22JxFp?= =?iso-8859-1?q?DEX/u6HFGs81M4IXjO6rCKrLra21UWgk9/ym87twb2czHqMwVdZcFOpQ/fKP?= =?iso-8859-1?q?/ZLb6KS/elrPp4TmHXdePGPhznzCFe1ATfn8J8lP2MDxFhujeEX/oHhF30Or?= =?iso-8859-1?q?cY5pGwp3m+7muwbdPKQo8etFy8UVD1JOUzhm3+AedLM1ZhNpQfKs5o4FvaHX?= =?iso-8859-1?q?rEzFwGj18Tmt1j9LzTHqkdbA+eQQH5jnhwvqFq+ECawIht/malohNj0fSpLE?= =?iso-8859-1?q?EEQ5ABk8UXj00E80Ya8QzY+3/QW9x65tWy9pAh59tM00dfzS+Z+88+mw0gbG?= =?iso-8859-1?q?qWNBnH4n2SltpHA+2MtDaa36VRTaX0ErUFin/yIu+naf7IB8akVTeNjQZ6v+?= =?iso-8859-1?q?GGGXqVk0pm9YRXPE4N+8M4W/Ncg04O66XytwzugSOFrhlwSTkzg/iHYCsO+g?= =?iso-8859-1?q?lMk8oTdJfsZSYflaHH/PEJZYzsrANnJ1aehAIEtrLvK5WxiCd+flAuvnpxvu?= =?iso-8859-1?q?r9glejtiyeNcgdFDaZkGSWudUEUm9h8iM5Hdj1CIcUp4ZBFFr9NRF7ksZV6X?= =?iso-8859-1?q?pAw/UOKjklW6fgVlblwJjHbeIwtbPlnt2un0grii7FijaJxjOWtbpC7M4Xlh?= =?iso-8859-1?q?P//u361mQBW1A00axDCLgcDk+AHCpxmlwke/rpS9jdvUsLpedgxEJFU+fZEw?= =?iso-8859-1?q?/lJhd/34Tl+60DqEprQc023Y2Rk4/cmA3dyFd6oAz5vtyCXWVHO9vXfsPErG?= =?iso-8859-1?q?eaOVlby+j35qhiJxBcrFXzIvQJqE5Be4791DqJ5tnOdypQlARxN1iJ/8AjpG?= =?iso-8859-1?q?QkyKFIpnlIUfcNIZbIX0XNuChAQvGmxxsN3r2Qao0MUdhqdqmOuTZLGI3roB?= =?iso-8859-1?q?/OqVJm7lkCVqyViHR0zo+NkK0ZrlrWtyffFSka4DoY5o4T7XiFynlDm+FRnK?= =?iso-8859-1?q?1m2BFsushpVAxTqRHZuYPktAJqZ0dKSlOwfU+/rUf88XuAwr4T790xkp+O/p?= =?iso-8859-1?q?WbgvddJXKAQc7mO0ZGTo4LuPFXlmCZG125zg2dsiPG2nX0mo5CxK17r63jxu?= =?iso-8859-1?q?op4+Tj?= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(1800799024)(82310400026)(36860700013)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 17:00:29.2909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5662810b-05cb-4a7b-8593-08dcbc8299e8 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF0000A7E4.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR02MB7025 X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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~incoming=patchwork.ozlabs.org@gcc.gnu.org (CC to the dejagnu project as a heads-up) Regtested cris-elf with a fresh newlib checkout where 2640 libstdc++-v3 tests otherwise fail due to the stubbed newlib _getentropy. Ok to commit? -- >8 -- Newer newlib trigger warnings about certain functions not implemented (_getentropy) when testing libstdc++-v3. Since 2018 (circa binutils-2.10) the "in function" prefix isn't capitalized for those "not implemented" warnings when generated from the linker (a GNU ld feature used by newlib). Dejagnu up to and including at least dejagnu-1.6.3 (and git @ 42979bd3b9) assumes a capital "In function", leaving that part unpruned, and boom we have thousands of "excess errors" from the libstdc++-v3 testsuite. While gcc/testsuite/lib/prune.exp:prune_gcc_output already deals with this quirk with a vastly more generic pattern, I choose this simpler tweak. libstdc++-v3: * testsuite/lib/prune.exp (libstdc++-dg-prune): Prune uncapitalized "in function" warning from linker. --- libstdc++-v3/testsuite/lib/prune.exp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libstdc++-v3/testsuite/lib/prune.exp b/libstdc++-v3/testsuite/lib/prune.exp index 071dcf34c1e8..4250e2d39e7d 100644 --- a/libstdc++-v3/testsuite/lib/prune.exp +++ b/libstdc++-v3/testsuite/lib/prune.exp @@ -80,6 +80,15 @@ proc libstdc++-dg-prune { system text } { # Ignore dsymutil warning (tool bug is actually in the linker) regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text + # This pattern, except requiring a capitalized "In" and with a + # sub-pattern matching a subsequent line "is not implemented and will + # always fail", is part of the standard dejagnu prune_warnings function. + # There's also a separate single-line pattern pruning the "is not + # implemented and will always fail". Since that pattern is processed + # before this ${tool}-dg-prune function is called, we have to handle + # the single uncapitalized "in function" line. + regsub -all "(^|\n)\[^\n\]*: in function\[^\n\]*" $text "" text + # If exceptions are disabled, mark tests expecting exceptions to be enabled # as unsupported. if { ![check_effective_target_exceptions_enabled] } {