ignore lto-wrapper warnings for lto builds

Message ID 221f70cf-5cff-6053-7499-499d4202e90b@debian.org
State Accepted
Headers
Series ignore lto-wrapper warnings for lto builds |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

Matthias Klose June 4, 2023, 6:44 a.m. UTC
  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

Ok for the trunk?

Matthias
  

Comments

Alan Modra June 6, 2023, 7:52 a.m. UTC | #1
On Sun, Jun 04, 2023 at 08:44:45AM +0200, Matthias Klose wrote:
> 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
> 
> Ok for the trunk?

OK.

> 
> Matthias

> --- a/binutils/testsuite/lib/binutils-common.exp
> +++ b/binutils/testsuite/lib/binutils-common.exp
> @@ -641,6 +641,7 @@ proc prune_warnings_extra { text } {
>      regsub -all "(^|\n)(\[^\n\]*: NOTE: This behaviour is deprecated\[^\n\]*\n?)+" $text "\\1" text
>      regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a LOAD segment with RWX permissions\[^\n\]*\n?)+" $text "\\1" text
>      regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a TLS segment with execute permission\[^\n\]*\n?)+" $text "\\1" text
> +    regsub -all "(^|\n)(\[^\n\]*lto-wrapper: warning: using serial compilation of \[0-9\]+ LTRANS jobs\[^\n\]*\n?)+" $text "\\1" text
>      return $text
>  }
>
  
Matthias Klose June 6, 2023, 11:25 a.m. UTC | #2
On 06.06.23 09:52, Alan Modra wrote:
> On Sun, Jun 04, 2023 at 08:44:45AM +0200, Matthias Klose wrote:
>> 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
>>
>> Ok for the trunk?
> 
> OK.

please could you check it in?

>> Matthias
> 
>> --- a/binutils/testsuite/lib/binutils-common.exp
>> +++ b/binutils/testsuite/lib/binutils-common.exp
>> @@ -641,6 +641,7 @@ proc prune_warnings_extra { text } {
>>       regsub -all "(^|\n)(\[^\n\]*: NOTE: This behaviour is deprecated\[^\n\]*\n?)+" $text "\\1" text
>>       regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a LOAD segment with RWX permissions\[^\n\]*\n?)+" $text "\\1" text
>>       regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a TLS segment with execute permission\[^\n\]*\n?)+" $text "\\1" text
>> +    regsub -all "(^|\n)(\[^\n\]*lto-wrapper: warning: using serial compilation of \[0-9\]+ LTRANS jobs\[^\n\]*\n?)+" $text "\\1" text
>>       return $text
>>   }
>>   
> 
>
  

Patch

--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -641,6 +641,7 @@  proc prune_warnings_extra { text } {
     regsub -all "(^|\n)(\[^\n\]*: NOTE: This behaviour is deprecated\[^\n\]*\n?)+" $text "\\1" text
     regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a LOAD segment with RWX permissions\[^\n\]*\n?)+" $text "\\1" text
     regsub -all "(^|\n)(\[^\n\]*: warning:\[^\n\]*has a TLS segment with execute permission\[^\n\]*\n?)+" $text "\\1" text
+    regsub -all "(^|\n)(\[^\n\]*lto-wrapper: warning: using serial compilation of \[0-9\]+ LTRANS jobs\[^\n\]*\n?)+" $text "\\1" text
     return $text
 }