]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add missing -pthread for new tests [PR122401]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 Oct 2025 10:38:22 +0000 (11:38 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 27 Oct 2025 18:24:20 +0000 (18:24 +0000)
commit935bebb2ce2f9245364cf77bd6804030890f5b62
tree423afc28f95324eea892f9aa43c41d33ffe41bd9
parent9e10fc177be25e5430e72a5c55ce7a36c45562c3
libstdc++: Add missing -pthread for new tests [PR122401]

These new multithreaded tests need -pthread for targets that don't
include all pthreads symbols in libc (including older Glibc in
particular).

The 30_threads/shared_timed_mutex/try_lock_until/116586.cc test is not
fixed by this commit, because it needs a different fix for older Glibc.

libstdc++-v3/ChangeLog:

PR libstdc++/122401
* testsuite/20_util/shared_ptr/atomic/pr118757.cc: Add -pthread
for et pthread.
* testsuite/20_util/weak_ptr/pr118757.cc: Likewise.
* testsuite/30_threads/condition_variable/members/116586.cc:
Likewise. Only run for hosted targets with gthreads support.
* testsuite/30_threads/future/members/116586.cc: Likewise.
* testsuite/30_threads/recursive_timed_mutex/try_lock_until/116586.cc:
Likewise.
* testsuite/30_threads/timed_mutex/try_lock_until/116586.cc:
Likewise.
libstdc++-v3/testsuite/20_util/shared_ptr/atomic/pr118757.cc
libstdc++-v3/testsuite/20_util/weak_ptr/pr118757.cc
libstdc++-v3/testsuite/30_threads/condition_variable/members/116586.cc
libstdc++-v3/testsuite/30_threads/future/members/116586.cc
libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/116586.cc
libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/116586.cc