]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos, testsuite: Add prune clauses for two Darwin cases.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 19 Nov 2021 15:48:53 +0000 (15:48 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 19 Nov 2021 19:51:27 +0000 (19:51 +0000)
Depending on the permutation of CPU, OS version and shared/non-
shared library inclusion, we get can get two warnings from the
external tools (ld64, dsymutil) which are not actually GCC issues
but relate to the external tools.  These are alrrady pruned in
the main testsuite, this adds them to the library.

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

* testsuite/lib/libphobos.exp: Prune warnings from external
tool bugs.

libphobos/testsuite/lib/libphobos.exp

index 3be2092b12eee7e3110cd885e809185bbadc5bef..2af430a0e456c86da75d72f19ba9fe857b1b9538 100644 (file)
@@ -90,6 +90,13 @@ proc libphobos-dg-test { prog do_what extra_tool_flags } {
 }
 
 proc libphobos-dg-prune { system text } {
+
+    # Ignore harmless warnings from Xcode.
+    regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text
+
+    # Ignore dsymutil warning (tool bug is actually linker)
+    regsub -all "(^|\n)\[^\n\]*could not find object file symbol for symbol\[^\n\]*" $text "" text
+
     return $text
 }