[patch] ignore lto-wrapper warnings for lto builds

Matthias Klose doko@debian.org
Tue Jun 6 11:25:17 GMT 2023


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
>>   }
>>   
> 
> 



More information about the Binutils mailing list