On 10/03/21 11:08 -0500, John David Anglin wrote:
This change fixes various tests that need linking against libatomic on hppa.
Committed to trunk.
Thanks.
diff --git a/libstdc++-v3/testsuite/30_threads/latch/3.cc
b/libstdc++-v3/testsuite/30_threads/latch/3.cc
index 079963f131e..2da6a84e2c5 100644
--- a/libstdc++-v3/testsuite/30_threads/latch/3.cc
+++ b/libstdc++-v3/testsuite/30_threads/latch/3.cc
@@ -19,6 +19,7 @@
// { dg-do run { target c++2a } }
// { dg-require-gthreads "" }
// { dg-additional-options "-pthread" { target pthread } }
+// { dg-add-options libatomic }
#include <latch>
#include <atomic>
Most of this looks good but I think we'll want to remove it from this
test again, as we're about to change the atomic type from ptrdiff_t to
int, and so hppa won't need libatomic.