Add options to link with libatomic in various tests.
libstdc++-v3/ChangeLog: * testsuite/29_atomics/atomic/wait_notify/bool.cc: Add options to link with libatomic. * testsuite/29_atomics/atomic/wait_notify/generic.cc: Likewise. * testsuite/29_atomics/atomic/wait_notify/pointers.cc: Likewise. * testsuite/29_atomics/atomic_flag/wait_notify/1.cc: Likewise. * testsuite/30_threads/barrier/arrive.cc: Likewise. * testsuite/30_threads/barrier/arrive_and_drop.cc: Likewise. * testsuite/30_threads/barrier/arrive_and_wait.cc: Likewise. * testsuite/30_threads/barrier/completion.cc: Likewise. * testsuite/30_threads/latch/3.cc: Likewise. * testsuite/30_threads/semaphore/try_acquire.cc: Likewise. * testsuite/30_threads/semaphore/try_acquire_for.cc: Likewise. * testsuite/30_threads/semaphore/try_acquire_until.cc: Likewise.
This commit is contained in:
parent
b97af562b5
commit
71dc5ae574
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
// Copyright (C) 2020-2021 Free Software Foundation, Inc.
|
||||||
//
|
//
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
#include <latch>
|
#include <latch>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-effective-target pthread }
|
// { dg-require-effective-target pthread }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-effective-target pthread }
|
// { dg-require-effective-target pthread }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
// { dg-do run { target c++2a } }
|
// { dg-do run { target c++2a } }
|
||||||
// { dg-require-gthreads "" }
|
// { dg-require-gthreads "" }
|
||||||
// { dg-additional-options "-pthread" { target pthread } }
|
// { dg-additional-options "-pthread" { target pthread } }
|
||||||
|
// { dg-add-options libatomic }
|
||||||
|
|
||||||
#include <semaphore>
|
#include <semaphore>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
Loading…
Reference in New Issue
Block a user