Tested on x86_64-linux, darwin, aarch64-linux, sparc solaris,
pushed to trunk, thanks,
Iain

--- 8< ---

The linker on newer versions of Darwin complains about duplicate libaries,
The asan library is already provided by the relevant specs and pthreads are
included in libSystem.

gcc/testsuite/ChangeLog:

        * g++.dg/asan/deep-thread-stack-1.C: Omit duplicate libraries
        for Darwin.

Signed-off-by: Iain Sandoe <[email protected]>
---
 gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C 
b/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C
index d5d85c42d93..98f4b09a208 100644
--- a/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C
+++ b/gcc/testsuite/g++.dg/asan/deep-thread-stack-1.C
@@ -1,5 +1,5 @@
 // { dg-do run { target pthread } }
-// { dg-options "-lasan -lpthread" }
+// { dg-options "-lasan -lpthread" { target { ! *-*-darwin* } } }
 // { dg-shouldfail "asan" }
 
 #include <pthread.h>
-- 
2.50.1 (Apple Git-155)

Reply via email to