https://gcc.gnu.org/g:6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae

commit r17-1393-g6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae
Author: Iain Sandoe <[email protected]>
Date:   Tue Jun 2 00:10:43 2026 +0100

    testsuite, c++, Darwin: Do not duplicate asan and pthread libs.
    
    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]>

Diff:
---
 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 d5d85c42d93f..98f4b09a2080 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>

Reply via email to