[gcc r16-9438] testsuite, c++, Darwin: Do not duplicate asan and pthread libs.
Iain D Sandoe via Gcc-cvs <[email protected]> Wed, 29 Jul 2026 21:42:57 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:63191aea373ae06db8d138ad532c84e288fff38d commit r16-9438-g63191aea373ae06db8d138ad532c84e288fff38d 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]> (cherry picked from commit 6c3b1e2e972d2fb331b4ea37080c5bf5e4c1d7ae) 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>