From patchwork Fri Nov 19 15:59:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 47941 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 935963858024 for ; Fri, 19 Nov 2021 15:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 935963858024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637337593; bh=tE1ERzrLh6kaaZR2LVM7duyR2FfKo8LPXzQ9HauF5tA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=hAhh4b1Sjyk2QHERTTeV+IXfTnd1Jw4LXXIM5RTaDaR3tKI134E92mbRKgGD9IHZ9 d0D6EC08rQOZ7zHz4vE9vsEvC3Ispr+LEFbRrgzCJMef7/uQWzxVkVvOl9IcJ28Pgi rr0UuhmFdoMX/bUtncDe5GUJOC/Y5vZtf2JPwQiA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 563C7385800C for ; Fri, 19 Nov 2021 15:59:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 563C7385800C Received: by mail-wm1-x330.google.com with SMTP id g191-20020a1c9dc8000000b0032fbf912885so7861924wme.4 for ; Fri, 19 Nov 2021 07:59:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :mime-version:content-transfer-encoding; bh=tE1ERzrLh6kaaZR2LVM7duyR2FfKo8LPXzQ9HauF5tA=; b=nfdF03ezAk3SQjme5QQAvcVV/rl1P8wkLHcNdUwy1oQN2N1+4WANyltB2qk2sZ8Ce+ aYrl9bbA42ci+KvWEjyxAvQ8ymQWKbfhcmCAB5TAcjpVtYBmrS/BGifM0x6ox+U4bUaP gDBRkITNYzwhBxrZ1B/N4NZZQaiV7kusssZnztCYXmAiq+dZLZyEtz2hg/EXSeoDlhFK GCvAFv7euUDqIoFlVwJgj7yFp+wg4Kdtlg3xvKTyVRtszWO58KKrrvf/0+DxoyjTMcj8 Sp/b4449V7rNzKKmABT54iSe3MEUsczb3v1DIEIJqj3Umb7y/J3OlZfWYgO9P7l7OI6O YLjQ== X-Gm-Message-State: AOAM533MmPpYC15kKenJbRBTArgKhQdSKGMk41QyZ8WE/OvHzdyne7y5 L/erh0frq4KyYU+3Rr5OpA+H2/HzdoM= X-Google-Smtp-Source: ABdhPJw6fBPqKBgoSktlaORzp4jIXEeVBCMSfiKzB6gKx6GsWX/7Vzei7VDpu51K/KaIWIkddMV5sg== X-Received: by 2002:a05:600c:4149:: with SMTP id h9mr836496wmm.100.1637337563339; Fri, 19 Nov 2021 07:59:23 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id l2sm14957577wmq.42.2021.11.19.07.59.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Nov 2021 07:59:23 -0800 (PST) X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [PATCH] libphobos, testsuite: Add prune clauses for two Darwin cases. Date: Fri, 19 Nov 2021 15:59:14 +0000 Message-Id: <20211119155914.9269-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Sandoe via Gcc-patches From: Iain Sandoe Reply-To: iain@sandoe.co.uk Cc: Iain Sandoe Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Depending on the permutation of CPU, OS version and shared/non- shared library inclusion, we get can get two warnings from the external tools (ld64, dsymutil) which are not actually GCC issues but relate to the external tools. These are already pruned in the main testsuite, this adds them to the library. tested on x86_64,i686-darwin17 where the problem shows up. OK for master / backports? thanks Iain Signed-off-by: Iain Sandoe libphobos/ChangeLog: * testsuite/lib/libphobos.exp: Prune warnings from external tool bugs. --- libphobos/testsuite/lib/libphobos.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libphobos/testsuite/lib/libphobos.exp b/libphobos/testsuite/lib/libphobos.exp index 3be2092b12e..2af430a0e45 100644 --- a/libphobos/testsuite/lib/libphobos.exp +++ b/libphobos/testsuite/lib/libphobos.exp @@ -90,6 +90,13 @@ proc libphobos-dg-test { prog do_what extra_tool_flags } { } proc libphobos-dg-prune { system text } { + + # Ignore harmless warnings from Xcode. + regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text + + # Ignore dsymutil warning (tool bug is actually linker) + regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text + return $text }