mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
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.
This commit is contained in:
committed by
Jonathan Wakely
parent
9e10fc177b
commit
935bebb2ce
@@ -1,4 +1,5 @@
|
||||
// { dg-do run { target c++20 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// { dg-do run { target c++20 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// { dg-do run { target c++11 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
#include <condition_variable>
|
||||
#include <chrono>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// { dg-do run { target c++11 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
#include <future>
|
||||
#include <chrono>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// { dg-do run { target c++11 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
#include <mutex>
|
||||
#include <chrono>
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// { dg-do run { target c++11 } }
|
||||
// { dg-additional-options "-pthread" { target pthread } }
|
||||
// { dg-require-gthreads "" }
|
||||
// { dg-require-effective-target hosted }
|
||||
|
||||
#include <chrono>
|
||||
#include <mutex>
|
||||
|
||||
Reference in New Issue
Block a user