diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2021-12-27 01:13:59 +0100 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gmail.com> | 2021-12-29 20:26:10 +0100 |
commit | 05edf6c470ae0ab50d42f16e78e476dbcc774842 (patch) | |
tree | 68874510e7515933005cc1b1875131141078f35c | |
parent | d8f6c48ccb85ecc0d97a84c32b7a1b8f43c64fe4 (diff) | |
download | gcc-05edf6c470ae0ab50d42f16e78e476dbcc774842.zip gcc-05edf6c470ae0ab50d42f16e78e476dbcc774842.tar.gz gcc-05edf6c470ae0ab50d42f16e78e476dbcc774842.tar.bz2 |
LTO: Prune some warnings in the testsuite
Warnings like:
warning: using serial compilation of 2 LTRANS jobs
warning: visibility attribute not supported in this configuration; ignored\[^\n\]*" $text "" text
are pruned by lto.exp, but not for LTO testcases when run in other parts
of the testsuite. They will be, now.
gcc/testsuite/ChangeLog:
PR testsuite/47334
PR testsuite/103823
* lib/prune.exp: Prune some warnings related to LTO and
visibility.
-rw-r--r-- | gcc/testsuite/lib/prune.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index 1314248..533e31d 100644 --- a/gcc/testsuite/lib/prune.exp +++ b/gcc/testsuite/lib/prune.exp @@ -96,6 +96,13 @@ proc prune_gcc_output { text } { # Ignore stabs obsoletion warnings regsub -all "(^|\n)\[^\n\]*\[Ww\]arning: STABS debugging information is obsolete and not supported anymore\[^\n\]*" $text "" text + # Ignore missing lto jobserver for tests that do more than 1 LTRANS unit + regsub -all "(^|\n)\[^\n\]*lto\[^\n\]*: warning: using serial compilation of \[^\n\]*" $text "" text + regsub -all "(^|\n)\[^\n\]*lto\[^\n\]*: note: see the \[^\n\]*'-flto' option documentation\[^\n\]* for more information" $text "" text + + # Many tests that use visibility will still pass on platforms that don't support it. + regsub -all "(^|\n)\[^\n\]*lto1: warning: visibility attribute not supported in this configuration; ignored\[^\n\]*" $text "" text + # If dg-enable-nn-line-numbers was provided, then obscure source-margin # line numbers by converting them to "NN" form. set text [maybe-handle-nn-line-numbers $text] |