]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++, testsuite: Add a prune expression for external tool bug.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 19 Nov 2021 15:52:29 +0000 (15:52 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 29 May 2022 19:11:16 +0000 (20:11 +0100)
Depending on the permutation of CPU, OS version and shared/non-
shared library inclusion, we get can get warnings from the external
tools (ld64, dsymutil) which are not actually libstdc++ issues but
relate to the external tools themselves.  This is already pruned
in the main testsuite, this adds it to the library.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libstdc++-v3/ChangeLog:

* testsuite/lib/prune.exp: Prune dsymutil (ld64) warning.

(cherry picked from commit c7b782d847d8682af9d5d91c0614a880cc2436f1)

libstdc++-v3/testsuite/lib/prune.exp

index 161ffa7aa5e239a5aef3dabcd69d16b618be11aa..a47d22ebe709fa8a0a5372d456932953b9eac601 100644 (file)
@@ -63,9 +63,12 @@ proc libstdc++-dg-prune { system text } {
     regsub -all "(^|\n)\[^\n\]*warning: DWARFDebugInfoEntry::AppendDependants\[^\n\]*AT_\[^\n\]*_bound\[^\n\]*FORM_ref4\[^\n\]*" $text "" text
     regsub -all "(^|\n)\[^\n\]*warning:\[^\n\]*TAG_variable:  AT_location\[^\n\]*didn't have valid function low pc\[^\n\]*" $text "" text
 
-    # Ignore harmless warnings from Xcode 4.0.
+    # Ignore harmless warnings from Xcode 4+.
     regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text
 
+    # Ignore dsymutil warning (tool bug is actually in the linker)
+    regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text
+
     foreach p $additional_prunes {
        if { [string length $p] > 0 } {
            # Following regexp matches a complete line containing $p.