3.4 PATCH: Enable POSIX threads tests in libstdc++-v3 for Tru64 UNIX
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Wed Jul 16 12:26:00 GMT 2003
Once my patch to enable POSIX threads on Tru64 UNIX
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01607.html
goes in, this patch to really test this support in libstdc++-v3 should be
added as well. With this patch (and the previous one), all thread tests on
Tru64 UNIX V4.0F and V5.1 change from UNSUPPORTED to PASS.
Ok for mainline (after the patch above)?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Wed Jul 16 11:58:01 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* testsuite/thread/pthread1.cc: Add alpha*-*-osf* to dg-do run,
dg-options.
* testsuite/thread/pthread2.cc: Likewise.
* testsuite/thread/pthread3.cc: Likewise.
* testsuite/thread/pthread4.cc: Likewise.
* testsuite/thread/pthread5.cc: Likewise.
* testsuite/thread/pthread6.cc: Likewise.
* testsuite/thread/pthread7-rope.cc: Likewise.
Index: libstdc++-v3/testsuite/thread/pthread1.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread1.cc,v
retrieving revision 1.7
diff -u -p -r1.7 pthread1.cc
--- libstdc++-v3/testsuite/thread/pthread1.cc 3 May 2003 07:42:22 -0000 1.7
+++ libstdc++-v3/testsuite/thread/pthread1.cc 16 Jul 2003 12:24:49 -0000
@@ -18,8 +18,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
// This multi-threading C++/STL/POSIX code adheres to rules outlined here:
Index: libstdc++-v3/testsuite/thread/pthread2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread2.cc,v
retrieving revision 1.4
diff -u -p -r1.4 pthread2.cc
--- libstdc++-v3/testsuite/thread/pthread2.cc 15 Apr 2003 20:31:57 -0000 1.4
+++ libstdc++-v3/testsuite/thread/pthread2.cc 16 Jul 2003 12:24:49 -0000
@@ -19,8 +19,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
#include <fstream>
Index: libstdc++-v3/testsuite/thread/pthread3.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread3.cc,v
retrieving revision 1.4
diff -u -p -r1.4 pthread3.cc
--- libstdc++-v3/testsuite/thread/pthread3.cc 15 Apr 2003 20:31:57 -0000 1.4
+++ libstdc++-v3/testsuite/thread/pthread3.cc 16 Jul 2003 12:24:49 -0000
@@ -19,8 +19,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
#include <sstream>
Index: libstdc++-v3/testsuite/thread/pthread4.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread4.cc,v
retrieving revision 1.7
diff -u -p -r1.7 pthread4.cc
--- libstdc++-v3/testsuite/thread/pthread4.cc 16 May 2003 02:34:14 -0000 1.7
+++ libstdc++-v3/testsuite/thread/pthread4.cc 16 Jul 2003 12:24:49 -0000
@@ -20,8 +20,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
#include <string>
Index: libstdc++-v3/testsuite/thread/pthread5.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread5.cc,v
retrieving revision 1.5
diff -u -p -r1.5 pthread5.cc
--- libstdc++-v3/testsuite/thread/pthread5.cc 15 Apr 2003 20:31:57 -0000 1.5
+++ libstdc++-v3/testsuite/thread/pthread5.cc 16 Jul 2003 12:24:49 -0000
@@ -20,8 +20,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
#include <vector>
Index: libstdc++-v3/testsuite/thread/pthread6.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread6.cc,v
retrieving revision 1.4
diff -u -p -r1.4 pthread6.cc
--- libstdc++-v3/testsuite/thread/pthread6.cc 15 Apr 2003 20:31:57 -0000 1.4
+++ libstdc++-v3/testsuite/thread/pthread6.cc 16 Jul 2003 12:24:49 -0000
@@ -19,8 +19,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-pthreads" { target *-*-solaris* } }
#include <string>
Index: libstdc++-v3/testsuite/thread/pthread7-rope.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/thread/pthread7-rope.cc,v
retrieving revision 1.1
diff -u -p -r1.1 pthread7-rope.cc
--- libstdc++-v3/testsuite/thread/pthread7-rope.cc 5 May 2003 22:28:16 -0000 1.1
+++ libstdc++-v3/testsuite/thread/pthread7-rope.cc 16 Jul 2003 12:24:49 -0000
@@ -18,8 +18,8 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
-// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* } }
-// { dg-options "-DDEBUG_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* } }
+// { dg-do run { target *-*-freebsd* *-*-netbsd* *-*-linux* *-*-solaris* *-*-cygwin *-*-darwin* alpha*-*-osf* } }
+// { dg-options "-DDEBUG_ASSERT -pthread" { target *-*-freebsd* *-*-netbsd* *-*-linux* alpha*-*-osf* } }
// { dg-options "-DDEBUG_ASSERT -pthreads" { target *-*-solaris* } }
#include <ext/rope>
More information about the Libstdc++
mailing list