From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id 027C73858D35; Thu, 29 Jun 2023 13:31:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 027C73858D35 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org Subject: [binutils-gdb] ignore lto-wrapper warnings for lto builds. X-Act-Checkin: binutils-gdb X-Git-Author: Matthias Klose X-Git-Refname: refs/heads/master X-Git-Oldrev: 3933413e7887045bf1eed302040177bcfee92c2f X-Git-Newrev: 96127db593a96c4848f76ecaff7f4feb5850c4b2 Message-Id: <20230629133133.027C73858D35@sourceware.org> Date: Thu, 29 Jun 2023 13:31:33 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jun 2023 13:31:33 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D96127db593a9= 6c4848f76ecaff7f4feb5850c4b2 commit 96127db593a96c4848f76ecaff7f4feb5850c4b2 Author: Matthias Klose Date: Thu Jun 29 14:30:55 2023 +0100 ignore lto-wrapper warnings for lto builds. =20 I see these warnings from time to time, when configuring a build with= --enable-pgo-build=3Dlto, I haven't yet found out why I see these sometim= e, and why not. E.g. https://gcc.gnu.org/PR109241. Just ignore these when = they appear in test cases. lto-wrapper: warning: using serial compilation = of N LTRANS jobs Diff: --- binutils/testsuite/lib/binutils-common.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuit= e/lib/binutils-common.exp index 2293895a614..7e6bf16ee6e 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -666,6 +666,9 @@ proc prune_warnings_extra { text } { # -z execstack is used. regsub -all "(^|\n)(\[^\n\]*: warning: enabling an executable stack be= cause of -z execstack command line option\[^\n\]*\n?)+" $text "\\1" text =20 + # Ignore LTO warnings triggered by configuring with --enable-pgo-build= =3Dlto. + regsub -all "(^|\n)(\[^\n\]*lto-wrapper: warning: using serial compila= tion of \[0-9\]+ LTRANS jobs\[^\n\]*\n?)+" $text "\\1" text + return $text }