aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2025-04-02 14:38:38 +0100
committerIain Sandoe <iain@sandoe.co.uk>2025-04-02 15:04:17 +0100
commitefe72d9f050a72ffb698adef8434afae1849dcff (patch)
treeee82ffe20efb5b80a4d95c30b71980b9a5d2de8b
parent574c59cfe6e29c9e5758988b75c2e7ab6edc37da (diff)
downloadgcc-efe72d9f050a72ffb698adef8434afae1849dcff.zip
gcc-efe72d9f050a72ffb698adef8434afae1849dcff.tar.gz
gcc-efe72d9f050a72ffb698adef8434afae1849dcff.tar.bz2
libstdc++, testsuite, Darwin: Prune a new linker warning present form XCode 16.
Darwin's linker now warns when duplicate rpaths are presented - which happens when we emit duplicate '-B' paths. In principle, we should avoid this in the test-suite, however at present we tend to have duplicates because different parts of the machinery add them. At some point, it might be nice to have an "add_option_if_missing" and apply that across the whole of the test infra. However this is not something for late in stage 4. So the solution here is to prune the warning - the effect of the duplicate in the libstdc++ testsuite is not important; it will make the exes very slightly larger but it won't alter the paths that are presented for loading the runtimes. libstdc++-v3/ChangeLog: * testsuite/lib/prune.exp: Prune ld warning about duplicatei rpaths. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r--libstdc++-v3/testsuite/lib/prune.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/lib/prune.exp b/libstdc++-v3/testsuite/lib/prune.exp
index 416e851..a9a2993 100644
--- a/libstdc++-v3/testsuite/lib/prune.exp
+++ b/libstdc++-v3/testsuite/lib/prune.exp
@@ -77,6 +77,9 @@ proc libstdc++-dg-prune { system text } {
# Ignore harmless warnings from Xcode 4+.
regsub -all "(^|\n)\[^\n\]*ld: warning: could not create compact unwind for\[^\n\]*" $text "" text
+ # Ignore duplicate path warnings from Xcode 16+.
+ regsub -all "(^|\n)\[^\n\]*ld: warning: duplicate -rpath\[^\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