diff mbox series

lto-wrapper: silent warnings in tests

Message ID 0790805f-c05e-ba87-87f8-3198d8b2189b@suse.cz
State New
Headers show
Series lto-wrapper: silent warnings in tests | expand

Commit Message

Martin Liška May 12, 2021, 12:06 p.m. UTC
Silents the following warning:
lto-wrapper: warning: using serial compilation of 2 LTRANS jobs

Ready to be installed?
Thanks,
Martin

gcc/testsuite/ChangeLog:

	* lib/lto.exp: When running tests without jobserver, one can see
	the following warning for tests that use 1to1 partitioning.
---
  gcc/testsuite/lib/lto.exp | 3 +++
  1 file changed, 3 insertions(+)

Comments

Richard Biener May 12, 2021, 12:15 p.m. UTC | #1
On Wed, May 12, 2021 at 2:06 PM Martin Liška <mliska@suse.cz> wrote:
>
> Silents the following warning:
> lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
>
> Ready to be installed?

OK.

> Thanks,
> Martin
>
> gcc/testsuite/ChangeLog:
>
>         * lib/lto.exp: When running tests without jobserver, one can see
>         the following warning for tests that use 1to1 partitioning.
> ---
>   gcc/testsuite/lib/lto.exp | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/gcc/testsuite/lib/lto.exp b/gcc/testsuite/lib/lto.exp
> index 94a81ffabb7..77919e8443b 100644
> --- a/gcc/testsuite/lib/lto.exp
> +++ b/gcc/testsuite/lib/lto.exp
> @@ -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
>
> --
> 2.31.1
>
diff mbox series

Patch

diff --git a/gcc/testsuite/lib/lto.exp b/gcc/testsuite/lib/lto.exp
index 94a81ffabb7..77919e8443b 100644
--- a/gcc/testsuite/lib/lto.exp
+++ b/gcc/testsuite/lib/lto.exp
@@ -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