]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-wrapper: silent warnings in tests
authorMartin Liska <mliska@suse.cz>
Wed, 12 May 2021 12:03:36 +0000 (14:03 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 6 Jan 2023 09:17:35 +0000 (10:17 +0100)
Silents the following warning:
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs

gcc/testsuite/ChangeLog:

* lib/lto.exp: When running tests without jobserver, one can see
the following warning for tests that use 1to1 partitioning.

(cherry picked from commit fc186594e3ee86a57841442e96306dddfd8eb85d)

gcc/testsuite/lib/lto.exp

index b2fa7ec8cecbb0f96851b78d31e660201174ce68..da4456e3aa1da038ba668ca97d07a65eb5f9a7af 100644 (file)
@@ -159,6 +159,9 @@ proc lto_prune_warns { text } {
     regsub -all "(^|\n)\[ \t\]*\[\(\]file \[^\n\]* value=\[^\n\]*; file \[^\n\]* value=\[^\n\]*\[)\];" $text "" text
     regsub -all "(^|\n)\[ \t\]*\[^\n\]* definition taken" $text "" text
 
+    # Ignore missing jobserver for tests that do more than 1 LTRANS unit
+    regsub -all "(^|\n)\[^\n\]*: warning: using serial compilation of \[^\n\]*" $text "" text
+
     # Ignore informational notes.
     regsub -all "(^|\n)\[^\n\]*: note: \[^\n\]*" $text "" text