From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id BE3133858C00; Fri, 6 Jan 2023 09:35:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE3133858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672997749; bh=oE6nYnPrDVjJ1B54S5JyriQxsP8Bz9ihFIOOGgf2BfM=; h=From:To:Subject:Date:From; b=TksE44f0ocvuntrWnqmAgXlSwgnsqeDi/eKIYhu+gzZXX4jDpetqNZQzlkxOUTMpR t5PHuqjUsoyoj0ikM1MJqHvV61FWNbPMF7eH0u8bk6UrdIAuQTkH0zFIeYA7rH4dsG yUtecGZ0guyzTfgvN00u22hcN8IR8nrXKA1rTwSo= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r10-11152] LTO: Prune some warnings in the testsuite X-Act-Checkin: gcc X-Git-Author: Francois-Xavier Coudert X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: 504545cea1938bcbffb5fc4f827eb52bbbae1941 X-Git-Newrev: 7097d2aafcae4b1cb89c28ff4fd4af18df9a2cef Message-Id: <20230106093549.BE3133858C00@sourceware.org> Date: Fri, 6 Jan 2023 09:35:49 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7097d2aafcae4b1cb89c28ff4fd4af18df9a2cef commit r10-11152-g7097d2aafcae4b1cb89c28ff4fd4af18df9a2cef Author: Francois-Xavier Coudert Date: Mon Dec 27 01:13:59 2021 +0100 LTO: Prune some warnings in the testsuite Warnings like: warning: using serial compilation of 2 LTRANS jobs warning: visibility attribute not supported in this configuration; ignored\[^\n\]*" $text "" text are pruned by lto.exp, but not for LTO testcases when run in other parts of the testsuite. They will be, now. gcc/testsuite/ChangeLog: PR testsuite/47334 PR testsuite/103823 * lib/prune.exp: Prune some warnings related to LTO and visibility. (cherry picked from commit 05edf6c470ae0ab50d42f16e78e476dbcc774842) Diff: --- gcc/testsuite/lib/prune.exp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index a5d09c78106..f11f008373c 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -82,6 +82,13 @@ proc prune_gcc_output { text } { # Ignore dsymutil warning (tool bug is actually linker) regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text + # Ignore missing lto jobserver for tests that do more than 1 LTRANS unit + regsub -all "(^|\n)\[^\n\]*lto\[^\n\]*: warning: using serial compilation of \[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*lto\[^\n\]*: note: see the \[^\n\]*'-flto' option documentation\[^\n\]* for more information" $text "" text + + # Many tests that use visibility will still pass on platforms that don't support it. + regsub -all "(^|\n)\[^\n\]*lto1: warning: visibility attribute not supported in this configuration; ignored\[^\n\]*" $text "" text + # If dg-enable-nn-line-numbers was provided, then obscure source-margin # line numbers by converting them to "NN" form. set text [maybe-handle-nn-line-numbers $text]