]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ignore lto-wrapper warnings for lto builds.
authorMatthias Klose <doko@debian.org>
Thu, 29 Jun 2023 13:30:55 +0000 (14:30 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 29 Jun 2023 13:30:55 +0000 (14:30 +0100)
  I see these warnings from time to time, when configuring a build with  --enable-pgo-build=lto, I haven't yet found out why I see these sometime, 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

binutils/testsuite/lib/binutils-common.exp

index 2293895a614369961dc2d1d9374850f97b15fd1c..7e6bf16ee6e8bdbce5276969410c2029b3cfd9a7 100644 (file)
@@ -666,6 +666,9 @@ proc prune_warnings_extra { text } {
     # -z execstack is used.
     regsub -all "(^|\n)(\[^\n\]*: warning: enabling an executable stack because of -z execstack command line option\[^\n\]*\n?)+" $text "\\1" text
 
+    # Ignore LTO warnings triggered by configuring with --enable-pgo-build=lto.
+    regsub -all "(^|\n)(\[^\n\]*lto-wrapper: warning: using serial compilation of \[0-9\]+ LTRANS jobs\[^\n\]*\n?)+" $text "\\1" text
+
     return $text
 }