]> gcc.gnu.org Git - gcc.git/commitdiff
LTO: Prune some warnings in the testsuite
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 27 Dec 2021 00:13:59 +0000 (01:13 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 6 Jan 2023 09:15:14 +0000 (10:15 +0100)
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.

(cherry picked from commit 05edf6c470ae0ab50d42f16e78e476dbcc774842)

gcc/testsuite/lib/prune.exp

index 25fb98c6bedd5b0e4721425e4102b6cbfabc5045..c2ff05c2a377db6a04eff38bb958c64f7911a568 100644 (file)
@@ -92,6 +92,13 @@ proc prune_gcc_output { text } {
     # Ignore dsymutil warning (tool bug is actually linker)
     regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\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]
This page took 0.064894 seconds and 5 git commands to generate.