From: Corentin Gay Date: Mon, 24 Aug 2020 02:18:48 +0000 (-0300) Subject: Fix libstdc++ testsuite to handle VxWorks gthreads implementation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e42d2f4cf44f673e147f94bd15609cc1b94b826;p=gcc.git Fix libstdc++ testsuite to handle VxWorks gthreads implementation When implementing the support for gthreads in VxWorks, we stumbled on a problem in the testsuite. In the libstdc++ testsuite, we indiscriminately add the `-pthread` switch to the tests that require linking against the pthread library. In certain cases, such as VxWorks, the gthread interface relies on the system native threads lilbrary and the `-pthread` switch does not exist. This patch adds a condition for the use of the `-pthread` switch. It adds it only if the target supports it. The patch also adds `dg-require-gthreads` in tests that were lacking it. for libstdc++-v3/ChangeLog * testsuite/20_util/shared_ptr/atomic/3.cc: Do not require POSIX threads and add -pthread only on targets supporting them. * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. * testsuite/30_threads/async/42819.cc: Likewise. * testsuite/30_threads/async/49668.cc: Likewise. * testsuite/30_threads/async/54297.cc: Likewise. * testsuite/30_threads/async/any.cc: Likewise. * testsuite/30_threads/async/async.cc: Likewise. * testsuite/30_threads/async/except.cc: Likewise. * testsuite/30_threads/async/launch.cc: Likewise. * testsuite/30_threads/async/lwg2021.cc: Likewise. * testsuite/30_threads/async/sync.cc: Likewise. : Likewise. * testsuite/30_threads/call_once/39909.cc: Likewise. * testsuite/30_threads/call_once/49668.cc: Likewise. * testsuite/30_threads/call_once/60497.cc: Likewise. * testsuite/30_threads/call_once/call_once1.cc: Likewise. * testsuite/30_threads/call_once/dr2442.cc: Likewise. * testsuite/30_threads/condition_variable/54185.cc: Likewise. * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. * testsuite/30_threads/condition_variable/members/1.cc: Likewise. * testsuite/30_threads/condition_variable/members/2.cc: Likewise. * testsuite/30_threads/condition_variable/members/3.cc: Likewise. * testsuite/30_threads/condition_variable/members/53841.cc: Likewise. * testsuite/30_threads/condition_variable/members/68519.cc: Likewise. * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. * testsuite/30_threads/condition_variable_any/53830.cc: Likewise. * testsuite/30_threads/condition_variable_any/cond.cc: Likewise. * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. * testsuite/30_threads/future/cons/move.cc: Likewise. * testsuite/30_threads/future/members/45133.cc: Likewise. * testsuite/30_threads/future/members/get.cc: Likewise. * testsuite/30_threads/future/members/get2.cc: Likewise. * testsuite/30_threads/future/members/share.cc: Likewise. * testsuite/30_threads/future/members/valid.cc: Likewise. * testsuite/30_threads/future/members/wait.cc: Likewise. * testsuite/30_threads/future/members/wait_for.cc: Likewise. * testsuite/30_threads/future/members/wait_until.cc: Likewise. * testsuite/30_threads/lock/1.cc: Likewise. * testsuite/30_threads/lock/2.cc: Likewise. * testsuite/30_threads/lock/3.cc: Likewise. * testsuite/30_threads/lock/4.cc: Likewise. * testsuite/30_threads/mutex/cons/1.cc: Likewise. * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/mutex/lock/1.cc: Likewise. * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/mutex/unlock/1.cc: Likewise. * testsuite/30_threads/mutex/unlock/2.cc: Likewise. * testsuite/30_threads/packaged_task/49668.cc: Likewise. * testsuite/30_threads/packaged_task/60564.cc: Likewise. * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise. * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. * testsuite/30_threads/packaged_task/members/at_thread_exit.cc: Likewise. * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. * testsuite/30_threads/promise/60966.cc: Likewise. * testsuite/30_threads/promise/cons/1.cc: Likewise. * testsuite/30_threads/promise/cons/alloc.cc: Likewise. * testsuite/30_threads/promise/cons/move.cc: Likewise. * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. * testsuite/30_threads/promise/members/at_thread_exit.cc: Likewise. * testsuite/30_threads/promise/members/at_thread_exit2.cc: Likewise. * testsuite/30_threads/promise/members/get_future.cc: Likewise. * testsuite/30_threads/promise/members/get_future2.cc: Likewise. * testsuite/30_threads/promise/members/set_exception.cc: Likewise. * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. * testsuite/30_threads/promise/members/set_value.cc: Likewise. * testsuite/30_threads/promise/members/set_value2.cc: Likewise. * testsuite/30_threads/promise/members/set_value3.cc: Likewise. * testsuite/30_threads/promise/members/swap.cc: Likewise. * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/unlock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/unlock/2.cc: Likewise. * testsuite/30_threads/shared_future/cons/move.cc: Likewise. * testsuite/30_threads/shared_future/members/45133.cc: Likewise. * testsuite/30_threads/shared_future/members/get.cc: Likewise. * testsuite/30_threads/shared_future/members/get2.cc: Likewise. * testsuite/30_threads/shared_future/members/valid.cc: Likewise. * testsuite/30_threads/shared_future/members/wait.cc: Likewise. * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. * testsuite/30_threads/shared_lock/cons/1.cc: Likewise. * testsuite/30_threads/shared_lock/cons/2.cc: Likewise. * testsuite/30_threads/shared_lock/cons/3.cc: Likewise. * testsuite/30_threads/shared_lock/cons/4.cc: Likewise. * testsuite/30_threads/shared_lock/cons/5.cc: Likewise. * testsuite/30_threads/shared_lock/cons/6.cc: Likewise. * testsuite/30_threads/shared_lock/locking/1.cc: Likewise. * testsuite/30_threads/shared_lock/locking/2.cc: Likewise. * testsuite/30_threads/shared_lock/locking/3.cc: Likewise. * testsuite/30_threads/shared_lock/locking/4.cc: Likewise. * testsuite/30_threads/shared_lock/modifiers/1.cc: Likewise. * testsuite/30_threads/shared_mutex/cons/1.cc: Likewise. * testsuite/30_threads/shared_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/shared_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/shared_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/shared_timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/shared_timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/shared_timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/shared_timed_mutex/try_lock/3.cc: Likewise. * testsuite/30_threads/shared_timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/this_thread/1.cc: Likewise. * testsuite/30_threads/this_thread/sleep_for-mt.cc: Likewise. * testsuite/30_threads/this_thread/sleep_until-mt.cc: Likewise. * testsuite/30_threads/thread/cons/1.cc: Likewise. * testsuite/30_threads/thread/cons/2.cc: Likewise. * testsuite/30_threads/thread/cons/3.cc: Likewise. * testsuite/30_threads/thread/cons/4.cc: Likewise. * testsuite/30_threads/thread/cons/49668.cc: Likewise. * testsuite/30_threads/thread/cons/5.cc: Likewise. * testsuite/30_threads/thread/cons/6.cc: Likewise. * testsuite/30_threads/thread/cons/7.cc: Likewise. * testsuite/30_threads/thread/cons/8.cc: Likewise. * testsuite/30_threads/thread/cons/9.cc: Likewise. * testsuite/30_threads/thread/cons/moveable.cc: Likewise. * testsuite/30_threads/thread/cons/terminate.cc: Likewise. * testsuite/30_threads/thread/members/1.cc: Likewise. * testsuite/30_threads/thread/members/2.cc: Likewise. * testsuite/30_threads/thread/members/3.cc: Likewise. * testsuite/30_threads/thread/members/4.cc: Likewise. * testsuite/30_threads/thread/members/5.cc: Likewise. * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. * testsuite/30_threads/thread/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/thread/swap/1.cc: Likewise. * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/57641.cc: Likewise. * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/unlock/2.cc: Likewise. * testsuite/30_threads/try_lock/1.cc: Likewise. * testsuite/30_threads/try_lock/2.cc: Likewise. * testsuite/30_threads/try_lock/3.cc: Likewise. * testsuite/30_threads/try_lock/4.cc: Likewise. * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. --- diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc index 144060c4785..c256239f125 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/atomic/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc index 7f324c6e107..a085a408352 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc @@ -18,10 +18,10 @@ // 20.6.6.2 Template class shared_ptr [util.smartptr.shared] // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-add-options libatomic } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // { dg-require-cstdint "" } #include diff --git a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc index bdc60c6a905..71a7b15e4fb 100644 --- a/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc +++ b/libstdc++-v3/testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc @@ -18,10 +18,10 @@ // 20.6.6.2 Template class shared_ptr [util.smartptr.shared] // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-add-options libatomic } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // { dg-require-cstdint "" } #include diff --git a/libstdc++-v3/testsuite/30_threads/async/42819.cc b/libstdc++-v3/testsuite/30_threads/async/42819.cc index 8f9db3b8ad9..15ac4da54b8 100644 --- a/libstdc++-v3/testsuite/30_threads/async/42819.cc +++ b/libstdc++-v3/testsuite/30_threads/async/42819.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/49668.cc b/libstdc++-v3/testsuite/30_threads/async/49668.cc index ae11ca4c6c3..ba402c09a13 100644 --- a/libstdc++-v3/testsuite/30_threads/async/49668.cc +++ b/libstdc++-v3/testsuite/30_threads/async/49668.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/54297.cc b/libstdc++-v3/testsuite/30_threads/async/54297.cc index c904829a610..9ef3c73fa6c 100644 --- a/libstdc++-v3/testsuite/30_threads/async/54297.cc +++ b/libstdc++-v3/testsuite/30_threads/async/54297.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-sleep "" } diff --git a/libstdc++-v3/testsuite/30_threads/async/any.cc b/libstdc++-v3/testsuite/30_threads/async/any.cc index 7fec2db9e8b..7651b2cc592 100644 --- a/libstdc++-v3/testsuite/30_threads/async/any.cc +++ b/libstdc++-v3/testsuite/30_threads/async/any.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/async.cc b/libstdc++-v3/testsuite/30_threads/async/async.cc index 7fa9b030a40..8c3a0c18768 100644 --- a/libstdc++-v3/testsuite/30_threads/async/async.cc +++ b/libstdc++-v3/testsuite/30_threads/async/async.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/except.cc b/libstdc++-v3/testsuite/30_threads/async/except.cc index 9b68c42dcb9..faddc887837 100644 --- a/libstdc++-v3/testsuite/30_threads/async/except.cc +++ b/libstdc++-v3/testsuite/30_threads/async/except.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/launch.cc b/libstdc++-v3/testsuite/30_threads/async/launch.cc index 13c9bdfee64..77b6dc90da9 100644 --- a/libstdc++-v3/testsuite/30_threads/async/launch.cc +++ b/libstdc++-v3/testsuite/30_threads/async/launch.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/async/lwg2021.cc b/libstdc++-v3/testsuite/30_threads/async/lwg2021.cc index 55968afa88d..b6e88203688 100644 --- a/libstdc++-v3/testsuite/30_threads/async/lwg2021.cc +++ b/libstdc++-v3/testsuite/30_threads/async/lwg2021.cc @@ -16,9 +16,8 @@ // . // { dg-do compile } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // LWG 2021. Further incorrect usages of result_of diff --git a/libstdc++-v3/testsuite/30_threads/async/sync.cc b/libstdc++-v3/testsuite/30_threads/async/sync.cc index eb0fde3ce83..572134a6d50 100644 --- a/libstdc++-v3/testsuite/30_threads/async/sync.cc +++ b/libstdc++-v3/testsuite/30_threads/async/sync.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/call_once/39909.cc b/libstdc++-v3/testsuite/30_threads/call_once/39909.cc index 01bcb1dec4d..1f35d7f8b9a 100644 --- a/libstdc++-v3/testsuite/30_threads/call_once/39909.cc +++ b/libstdc++-v3/testsuite/30_threads/call_once/39909.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/call_once/49668.cc b/libstdc++-v3/testsuite/30_threads/call_once/49668.cc index 67ef6cbd7cd..7eb5426a822 100644 --- a/libstdc++-v3/testsuite/30_threads/call_once/49668.cc +++ b/libstdc++-v3/testsuite/30_threads/call_once/49668.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/call_once/60497.cc b/libstdc++-v3/testsuite/30_threads/call_once/60497.cc index 129a2bc7bab..9955a9eebed 100644 --- a/libstdc++-v3/testsuite/30_threads/call_once/60497.cc +++ b/libstdc++-v3/testsuite/30_threads/call_once/60497.cc @@ -1,7 +1,6 @@ // { dg-do compile } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc b/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc index 9f8567007e9..26cfa576e81 100644 --- a/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc +++ b/libstdc++-v3/testsuite/30_threads/call_once/call_once1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/call_once/dr2442.cc b/libstdc++-v3/testsuite/30_threads/call_once/dr2442.cc index 4126c54910c..28947101519 100644 --- a/libstdc++-v3/testsuite/30_threads/call_once/dr2442.cc +++ b/libstdc++-v3/testsuite/30_threads/call_once/dr2442.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2016-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc index ea0d5bb8740..3d044c1bef3 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/54185.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2012-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc index a8b41dd2f95..79104e1277c 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc index 98b1daddb0d..6cf336ff46d 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/members/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc index c671804b406..744e0b8c41e 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/members/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc index 4cd0fb89648..079b0242d62 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/members/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc index 12b9d12a65a..096a0da88bd 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/members/53841.cc @@ -1,7 +1,6 @@ // { dg-do compile } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2012-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/members/68519.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/members/68519.cc index 9a70713a1bb..2a6ecb95fd1 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/members/68519.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/members/68519.cc @@ -16,9 +16,8 @@ // . // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } #include diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc index be1923a1958..deac6812290 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc index fef0ce82aad..92781148e38 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/50862.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-sched-yield "" } diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/53830.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/53830.cc index 53b1d20e622..8b0c87b213b 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/53830.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/53830.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-sched-yield "" } // { dg-require-sleep "" } diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/cond.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/cond.cc index 122bb13f253..6b994d0177f 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/cond.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/cond.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2018-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc index d3e1cf4914a..5db804a4c7e 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc index bc254c3f3cc..c21fc5a2edf 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc b/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc index 9d75a7664b3..5d822d78338 100644 --- a/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc +++ b/libstdc++-v3/testsuite/30_threads/condition_variable_any/members/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/cons/move.cc b/libstdc++-v3/testsuite/30_threads/future/cons/move.cc index 77c551e0278..26a59d2ab41 100644 --- a/libstdc++-v3/testsuite/30_threads/future/cons/move.cc +++ b/libstdc++-v3/testsuite/30_threads/future/cons/move.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/45133.cc b/libstdc++-v3/testsuite/30_threads/future/members/45133.cc index 54e7cb9ea36..d27bbd54e27 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/45133.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/45133.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/get.cc b/libstdc++-v3/testsuite/30_threads/future/members/get.cc index a8840089bd7..537f176c696 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/get.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/get.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/get2.cc b/libstdc++-v3/testsuite/30_threads/future/members/get2.cc index 27dbb181f9a..8550fe41669 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/get2.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/get2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/share.cc b/libstdc++-v3/testsuite/30_threads/future/members/share.cc index c0ea49fdd54..1eff6ac96ca 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/share.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/share.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/valid.cc b/libstdc++-v3/testsuite/30_threads/future/members/valid.cc index 3f540eccc38..bc000bd1be2 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/valid.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/valid.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/wait.cc b/libstdc++-v3/testsuite/30_threads/future/members/wait.cc index e6a8af8cbb2..f3d6666975e 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/wait.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/wait.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc b/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc index aa0ac33450b..4bd603f47f7 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/wait_for.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc b/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc index 4137bc0ed9b..1742fe6cfca 100644 --- a/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc +++ b/libstdc++-v3/testsuite/30_threads/future/members/wait_until.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/lock/1.cc b/libstdc++-v3/testsuite/30_threads/lock/1.cc index 285e3c11bb6..8c5cc9a02b8 100644 --- a/libstdc++-v3/testsuite/30_threads/lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/lock/2.cc b/libstdc++-v3/testsuite/30_threads/lock/2.cc index b4e1e1c1cac..977ffba2b67 100644 --- a/libstdc++-v3/testsuite/30_threads/lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/lock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/lock/3.cc b/libstdc++-v3/testsuite/30_threads/lock/3.cc index 18fd009c9ff..6185ffec306 100644 --- a/libstdc++-v3/testsuite/30_threads/lock/3.cc +++ b/libstdc++-v3/testsuite/30_threads/lock/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/lock/4.cc b/libstdc++-v3/testsuite/30_threads/lock/4.cc index 01b3c1776a3..f31b2dd4884 100644 --- a/libstdc++-v3/testsuite/30_threads/lock/4.cc +++ b/libstdc++-v3/testsuite/30_threads/lock/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc index 7f6cbed7616..ddd7d5d437c 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc b/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc index 25bce6b907e..ee1b3a87853 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/dest/destructor_locked.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc b/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc index d08acf8986f..3e9d24fbed8 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc b/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc index 9bc64b389f8..af7d9949445 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/native_handle/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc index 87ab41f6169..5ddf6528ef5 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc index 56340bc8221..cc667991adc 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/try_lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc index 527c0103f16..afeb5538b78 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/try_lock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc index fb0da362e38..5777e2b9f07 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/unlock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/mutex/unlock/2.cc b/libstdc++-v3/testsuite/30_threads/mutex/unlock/2.cc index bbe04c6ae8f..b9a811679b6 100644 --- a/libstdc++-v3/testsuite/30_threads/mutex/unlock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/mutex/unlock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc index 2f84cea7705..aa1336893ac 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/49668.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc index 66aff7c7375..a8dd60e6de3 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/60564.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc index d8c2dfcd27d..31317586f92 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc index 2090224e988..1d305ad9afc 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc index dad645c9157..e354b987cb7 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc index 10fa622d7db..e199a465244 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/56492.cc @@ -1,7 +1,6 @@ // { dg-do compile } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc index 4e0ca335f56..dbe477ad1bf 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc @@ -1,6 +1,6 @@ -// { dg-do run { target { c++11_only || c++14_only } } } -// { dg-options "-pthread" } -// { dg-require-effective-target pthread } +// { dg-do run } +// { dg-additional-options "-pthread" { target pthread } } +// { dg-require-effective-target c++11 } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc index 2ccc89cbee9..d7b1ce73dbc 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc index db55da7422a..38a0e8cbf32 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/cons/move_assign.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc index 6b6aca9bbdb..725f9b0b9bd 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/at_thread_exit.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc index 0127873ea15..9a98e21b71e 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc index 0a9c100d46e..9899583dba8 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/get_future2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc index 588153268ca..b178e91b226 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc index 436ba70fa66..13d6a373d4b 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc index 6416786259c..08759c23f2d 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc index 5f390122d20..5da2a7926d8 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc index 84c0ac3230f..984bf4f5561 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/invoke5.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc index 8eea7f51d9a..f746e2346c9 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc index 35811e26588..0bcaf9be4cf 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/reset2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc index 601f4234bce..e79be75acd7 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/swap.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc b/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc index 5b599b533d7..5a08c090a2e 100644 --- a/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc +++ b/libstdc++-v3/testsuite/30_threads/packaged_task/members/valid.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/60966.cc b/libstdc++-v3/testsuite/30_threads/promise/60966.cc index 6de0e3520f0..445422f841d 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/60966.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/60966.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc b/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc index 1d9e9431496..4c3f25a76ef 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc b/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc index ca752305f28..6d3d85918c1 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc b/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc index 1458b134a6c..ca67d30e124 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/cons/move.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc b/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc index f5719b49b05..848b9a8b9de 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/cons/move_assign.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc b/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc index 7bdfcdc13be..29c5156890d 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit2.cc b/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit2.cc index 59eeae823ec..53e87c86ee0 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit2.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/at_thread_exit2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2014-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc b/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc index 5985166cdfe..fd946556fc1 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/get_future.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc b/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc index 016f9185164..246074a913c 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/get_future2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc b/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc index 282e1f1e673..94df89e0c12 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/set_exception.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc b/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc index 25850d0389b..7a925f06cd1 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/set_exception2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc b/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc index b4b4771470e..b523c6b5aad 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/set_value.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc b/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc index 86492aa2846..f4cba4a1446 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/set_value2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc b/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc index f778b36ddb7..5fb10e9e374 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/set_value3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc b/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc index 81bab94f19a..b5f75805db2 100644 --- a/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc +++ b/libstdc++-v3/testsuite/30_threads/promise/members/swap.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc index 84d0cb6554d..84813c2512f 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc index 20041b00deb..22ad0416a0a 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc index ff849501961..e430098c768 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc index b4fe115a2ce..ddaae57b84f 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc index 2c15feeeafd..5ad76a4fe32 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc index a797d778cf6..81b95edd6c1 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc index e6ed94720fe..0be6b0d183e 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/try_lock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc index 79ee4080756..c98345a2249 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/2.cc index eec5174b3cd..64ffe5529c7 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_mutex/unlock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc index 1f16d1ad4b5..997c8514c36 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/cons/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc index 974c6abd949..62f03ed1896 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc index 5db96bcea44..4cee87acebf 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc index 56b207390d2..180e3cd1f81 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/lock/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc index 4131489529f..2067b1d87b0 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads-timed "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc index 2a1d72783e7..df9820541e5 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads-timed "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc index 79780d69cee..dec1c597361 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc index fd3bccfb1b3..12b42a14e22 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc index 802c8dffac7..dc3aa59c025 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc index eaf57e80af5..d18ff0748b9 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc index 8d5131f3db3..c785b853105 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc index 79780d69cee..dec1c597361 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc index ff6a35b4ceb..a5ccbb5a5ae 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc index 56225c5950a..fc432ae6f95 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/2.cc b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/2.cc index 4a1b62a78c8..cf041749f9d 100644 --- a/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/recursive_timed_mutex/unlock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc b/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc index d1d7b1a9142..cbf19d9c9ef 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/cons/move.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc index 0771dccc1dc..ce44036a26f 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/45133.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc index 621c79be7d8..a89864bd08a 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/get.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc index dbbeae19a61..0ff6618c1ea 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/get2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc index 937f67ec0cd..69a4a3b7714 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/valid.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc index 55e5b966403..c01e4290a4b 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc index 50e7da0a333..62cf3584a1e 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_for.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc index 93c09ef0f99..e126cd4d2fb 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_future/members/wait_until.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc index 8b119820d97..f30058e64e6 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc index 020e1272282..1f8cca28b7d 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc index b55774f6468..ec3dc47313f 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc index d7efb38ebc9..929b836dfc3 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc index 4d4bab351cc..ff866b5fa10 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/5.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc index f5312660d85..92b4a1840d1 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/cons/6.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc index 3775fc9e3f2..2eef39181e9 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc index 95c6d0c9c2b..8e59820d2cc 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc index 1d04da6dd7f..90e73e88bb3 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/3.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc index 46e060b98b8..0574995417a 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/locking/4.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc b/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc index cf08302c1ad..ca5a1f123ff 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_lock/modifiers/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/shared_mutex/cons/1.cc index ea177c08084..635452bdfbf 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_mutex/cons/1.cc @@ -1,6 +1,6 @@ -// { dg-options "-std=gnu++17 -pthread" } +// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } -// { dg-require-effective-target pthread } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/1.cc index c1a3cd6cae6..eb41bf26136 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/1.cc @@ -1,6 +1,6 @@ -// { dg-options "-std=gnu++17 -pthread" } +// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } -// { dg-require-effective-target pthread } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/2.cc index d5d5e10084f..b4b96b3377a 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_mutex/try_lock/2.cc @@ -1,6 +1,6 @@ -// { dg-options "-std=gnu++17 -pthread" } +// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } -// { dg-require-effective-target pthread } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/shared_mutex/unlock/1.cc index 146d8c20c60..939c0f0388c 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_mutex/unlock/1.cc @@ -1,6 +1,6 @@ -// { dg-options "-std=gnu++17 -pthread" } +// { dg-options "-std=gnu++17" } // { dg-do run { target c++17 } } -// { dg-require-effective-target pthread } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc index 987c01ea85a..abfb979604b 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc index 566d4051410..29ffdeea31e 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc index 5b85d3c49c8..3123630175d 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc index 82cd113e2af..ca8f1dd1e53 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/try_lock/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/unlock/1.cc index 1c5dc314b45..4a7b5fe0135 100644 --- a/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/shared_timed_mutex/unlock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++14 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/this_thread/1.cc b/libstdc++-v3/testsuite/30_threads/this_thread/1.cc index 2d99b8bc803..5ee8092589c 100644 --- a/libstdc++-v3/testsuite/30_threads/this_thread/1.cc +++ b/libstdc++-v3/testsuite/30_threads/this_thread/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/this_thread/sleep_for-mt.cc b/libstdc++-v3/testsuite/30_threads/this_thread/sleep_for-mt.cc index 45993811d01..6eb4ca8a50f 100644 --- a/libstdc++-v3/testsuite/30_threads/this_thread/sleep_for-mt.cc +++ b/libstdc++-v3/testsuite/30_threads/this_thread/sleep_for-mt.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-sleep "" } diff --git a/libstdc++-v3/testsuite/30_threads/this_thread/sleep_until-mt.cc b/libstdc++-v3/testsuite/30_threads/this_thread/sleep_until-mt.cc index fc8d10d8448..95165b992b2 100644 --- a/libstdc++-v3/testsuite/30_threads/this_thread/sleep_until-mt.cc +++ b/libstdc++-v3/testsuite/30_threads/this_thread/sleep_until-mt.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-sleep "" } diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc index a7e91b1da56..0062e0d7458 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc index 1b2cf8598cc..5d110971017 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc index 1d86423f5ae..9387738f8a9 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc index f77b3c54c64..443eb5327b9 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc index 057aa655dc9..f5fdbbc02ab 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/49668.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2011-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc index 9d6921a6be6..2c7b0a0c143 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/5.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc index e215ed1d550..2c36e7b91ad 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/6.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc index e83fba3723c..50b14aeda4f 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/7.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc index 3ff6ac92f5e..2da704a1b05 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/8.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc index de796182632..46bb7c9327a 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/9.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc index a3401cdeefb..a94e599df14 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/moveable.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc b/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc index 6e71e95f21c..c402e450f4b 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/cons/terminate.cc @@ -16,9 +16,8 @@ // . // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } #include diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/1.cc b/libstdc++-v3/testsuite/30_threads/thread/members/1.cc index 9197d5345a7..e08c89b2dca 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/1.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/2.cc b/libstdc++-v3/testsuite/30_threads/thread/members/2.cc index 72f3c142f3c..5735398dc66 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/2.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/3.cc b/libstdc++-v3/testsuite/30_threads/thread/members/3.cc index 8390f995167..1ca37872311 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/3.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/4.cc b/libstdc++-v3/testsuite/30_threads/thread/members/4.cc index 1c7a6428792..e2445abc2c2 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/4.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/5.cc b/libstdc++-v3/testsuite/30_threads/thread/members/5.cc index f2c9243a7c1..a23c58bc091 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/5.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/5.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc b/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc index bf3fc6d169c..e8ae5ac8ee3 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/members/hardware_concurrency.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // { dg-require-nprocs "" } diff --git a/libstdc++-v3/testsuite/30_threads/thread/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/thread/native_handle/typesizes.cc index c3ed9387b7c..403f2980d35 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc b/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc index 22f501d0c2b..881de008402 100644 --- a/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc +++ b/libstdc++-v3/testsuite/30_threads/thread/swap/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc index d26dea82a3b..6442c2c8fd4 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/cons/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc index 5c7cde1bec1..27e8bc56a05 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/dest/destructor_locked.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc index 25fb2f3c4ba..dbe3c89554f 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/lock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc index 446b9c3128d..c4b94dc3fb1 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads-timed "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc index 07e95ae2b4a..3850183b4fa 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/native_handle/typesizes.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads-timed "" } // Copyright (C) 2009-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc index f8578154d79..7fe759e7321 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc index 1e771794061..04ffeb08179 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc index e0ab8b7eb5e..e798ac77ca9 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc index 186951bdcc3..4e37045bf35 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // { dg-require-cstdint "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc index 40b4ed09398..dd6174ab3c7 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_for/3.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc index f8578154d79..7fe759e7321 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc index 1e771794061..04ffeb08179 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/2.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc index fbdfb82cb5b..9ea5607ceff 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/try_lock_until/57641.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2013-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc index ae41c40ccaf..baf72b77eae 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/1.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/2.cc b/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/2.cc index 74a833aaac8..2aad347707a 100644 --- a/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/timed_mutex/unlock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2015-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/try_lock/1.cc b/libstdc++-v3/testsuite/30_threads/try_lock/1.cc index 67df1f76310..212dbd9a91d 100644 --- a/libstdc++-v3/testsuite/30_threads/try_lock/1.cc +++ b/libstdc++-v3/testsuite/30_threads/try_lock/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/try_lock/2.cc b/libstdc++-v3/testsuite/30_threads/try_lock/2.cc index 5459e23271a..9cbfe649884 100644 --- a/libstdc++-v3/testsuite/30_threads/try_lock/2.cc +++ b/libstdc++-v3/testsuite/30_threads/try_lock/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/try_lock/3.cc b/libstdc++-v3/testsuite/30_threads/try_lock/3.cc index f31bff85417..cd0a30e3338 100644 --- a/libstdc++-v3/testsuite/30_threads/try_lock/3.cc +++ b/libstdc++-v3/testsuite/30_threads/try_lock/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/try_lock/4.cc b/libstdc++-v3/testsuite/30_threads/try_lock/4.cc index 1ed78889c1c..3427a0db663 100644 --- a/libstdc++-v3/testsuite/30_threads/try_lock/4.cc +++ b/libstdc++-v3/testsuite/30_threads/try_lock/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2010-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc index cebeb6b7f02..458de09b35c 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc index 5b969c6f19f..26b97db9a33 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc index d8d025dc71e..5623ee0cc4e 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/3.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc index 5d9ac203687..c77d3b5af1d 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/4.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc index 32625cf201e..801bbbe999f 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/5.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc index 50f4fc8f761..cb51e721982 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/cons/6.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc index ba901d65d3b..b3edb292e3a 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc index 3b4c6e7946d..c443a0284ae 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/2.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc index 135b6ffd5dc..1a943659633 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/3.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc index f526d9a0696..9867d9312c1 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/locking/4.cc @@ -1,7 +1,7 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } +// { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc b/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc index adee63cd2a1..e0c65ed205f 100644 --- a/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc +++ b/libstdc++-v3/testsuite/30_threads/unique_lock/modifiers/1.cc @@ -1,7 +1,6 @@ // { dg-do run } -// { dg-options "-pthread" } +// { dg-additional-options "-pthread" { target pthread } } // { dg-require-effective-target c++11 } -// { dg-require-effective-target pthread } // { dg-require-gthreads "" } // Copyright (C) 2008-2020 Free Software Foundation, Inc.