This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]