This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] libstdc++/testsuite/experimental/algorithm link errors
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ at gcc dot gnu dot org
- Date: Tue, 26 Jun 2018 15:09:58 -0400
- Subject: [PATCH] libstdc++/testsuite/experimental/algorithm link errors
The recent addition of
testsuite/experimental/algorithm/sample-2.cc
testsuite/experimental/algorithm/shuffle.cc
introduced link errors on AIX. AIX (and Solaris) require additional
options for TLS in some situations.
This patch adds the dejagnu TLS directives.
Was this dependency intended? Is this patch okay?
Thanks, David
* testsuite/experimental/algorithm/sample-2.cc: Add TLS directives.
* testsuite/experimental/algorithm/shuffle.cc: Likewise.
Index: experimental/algorithm/sample-2.cc
===================================================================
--- experimental/algorithm/sample-2.cc (revision 262161)
+++ experimental/algorithm/sample-2.cc (working copy)
@@ -16,6 +16,8 @@
// <http://www.gnu.org/licenses/>.
// { dg-do run { target c++14 } }
+// { dg-require-effective-target tls_runtime }
+// { dg-add-options tls }
#include <experimental/algorithm>
#include <algorithm>
Index: experimental/algorithm/shuffle.cc
===================================================================
--- experimental/algorithm/shuffle.cc (revision 262161)
+++ experimental/algorithm/shuffle.cc (working copy)
@@ -1,4 +1,6 @@
// { dg-do run { target c++14 } }
+// { dg-require-effective-target tls_runtime }
+// { dg-add-options tls }
// Derived from: 2010-03-19 Paolo Carlini <paolo.carlini@oracle.com>