diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 16:21:30 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-02 16:21:30 +0000 |
commit | 41de110f271fa5d70592edb432c6f09e72182211 (patch) | |
tree | e52eaced466cf7de7cf45af492ba4bcb23c5d65c /libstdc++-v3/testsuite | |
parent | 7fefc6e7a0f36666c94f24e90aa84d2c1051059a (diff) | |
download | gcc-41de110f271fa5d70592edb432c6f09e72182211.tar.gz |
2007-03-02 Paolo Carlini <pcarlini@suse.de>
* testsuite/thread/pthread1.cc: Include <pthread.h>.
* 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.
2007-03-02 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (partial)
* include/tr1/random (class random_device): Rework to use simple
<cstdio> input, do not include <fstream>.
* include/tr1/random.tcc (all inserters and extractors): Refer
to ios_base as base class of basic_istream or basic_ostream.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122478 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread1.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread2.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread3.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread4.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread5.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread6.cc | 7 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/thread/pthread7-rope.cc | 6 |
7 files changed, 20 insertions, 28 deletions
diff --git a/libstdc++-v3/testsuite/thread/pthread1.cc b/libstdc++-v3/testsuite/thread/pthread1.cc index d9ba9b16a96..f66c3c9e846 100644 --- a/libstdc++-v3/testsuite/thread/pthread1.cc +++ b/libstdc++-v3/testsuite/thread/pthread1.cc @@ -1,6 +1,7 @@ // 2002-01-23 Loren J. Rittle <rittle@labs.mot.com> <ljrittle@acm.org> // -// Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -30,9 +31,7 @@ // if the STL threading support is fubar'd). #include <list> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> using namespace std; diff --git a/libstdc++-v3/testsuite/thread/pthread2.cc b/libstdc++-v3/testsuite/thread/pthread2.cc index 9fffd284fe1..73a3da596df 100644 --- a/libstdc++-v3/testsuite/thread/pthread2.cc +++ b/libstdc++-v3/testsuite/thread/pthread2.cc @@ -1,7 +1,8 @@ // 2002-01-23 Loren J. Rittle <rittle@labs.mot.com> <ljrittle@acm.org> // Adpated from libstdc++/5347 submitted by markus.breuer@materna.de // -// Copyright (C) 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -24,9 +25,7 @@ // { dg-options "-pthreads" { target *-*-solaris* } } #include <fstream> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> const int max_thread_count = 2; const int max_loop_count = 1000000; diff --git a/libstdc++-v3/testsuite/thread/pthread3.cc b/libstdc++-v3/testsuite/thread/pthread3.cc index a0e340caf7d..740c9098b69 100644 --- a/libstdc++-v3/testsuite/thread/pthread3.cc +++ b/libstdc++-v3/testsuite/thread/pthread3.cc @@ -1,7 +1,8 @@ // 2002-01-23 Loren J. Rittle <rittle@labs.mot.com> <ljrittle@acm.org> // Adpated from libstdc++/5347 submitted by markus.breuer@materna.de // -// Copyright (C) 2002, 2003 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -24,9 +25,7 @@ // { dg-options "-pthreads" { target *-*-solaris* } } #include <sstream> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> const int max_thread_count = 2; const int max_loop_count = 1000000; diff --git a/libstdc++-v3/testsuite/thread/pthread4.cc b/libstdc++-v3/testsuite/thread/pthread4.cc index a4b520d73e4..f910f9c40b5 100644 --- a/libstdc++-v3/testsuite/thread/pthread4.cc +++ b/libstdc++-v3/testsuite/thread/pthread4.cc @@ -2,7 +2,8 @@ // Adapted from http://gcc.gnu.org/ml/gcc-bugs/2002-01/msg00679.html // which was adapted from pthread1.cc by Mike Lu <MLu@dynamicsoft.com> // -// Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -26,9 +27,7 @@ #include <string> #include <list> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> using namespace std; diff --git a/libstdc++-v3/testsuite/thread/pthread5.cc b/libstdc++-v3/testsuite/thread/pthread5.cc index 189c8a5c153..4d5aac4365b 100644 --- a/libstdc++-v3/testsuite/thread/pthread5.cc +++ b/libstdc++-v3/testsuite/thread/pthread5.cc @@ -2,7 +2,8 @@ // Adpated from libstdc++/5464 submitted by jjessel@amadeus.net // Jean-Francois JESSEL (Amadeus SAS Development) // -// Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -27,9 +28,7 @@ #include <vector> #include <list> #include <string> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> #ifdef _GLIBCXX_HAVE_UNISTD_H #include <unistd.h> // To test for _POSIX_THREAD_PRIORITY_SCHEDULING diff --git a/libstdc++-v3/testsuite/thread/pthread6.cc b/libstdc++-v3/testsuite/thread/pthread6.cc index 75d49e211a8..64b7a3d5318 100644 --- a/libstdc++-v3/testsuite/thread/pthread6.cc +++ b/libstdc++-v3/testsuite/thread/pthread6.cc @@ -1,7 +1,8 @@ // 2002-01-23 Loren J. Rittle <rittle@labs.mot.com> <ljrittle@acm.org> // Adpated from libstdc++/5444 submitted by markus.breuer@materna.de // -// Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +// Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -26,9 +27,7 @@ #include <string> #include <map> #include <vector> - -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. +#include <pthread.h> const int max_thread_count = 8; const int loops = 100000; diff --git a/libstdc++-v3/testsuite/thread/pthread7-rope.cc b/libstdc++-v3/testsuite/thread/pthread7-rope.cc index c09ab4564d0..323366572fa 100644 --- a/libstdc++-v3/testsuite/thread/pthread7-rope.cc +++ b/libstdc++-v3/testsuite/thread/pthread7-rope.cc @@ -1,6 +1,6 @@ // 2003-05-03 Loren J. Rittle <rittle@labs.mot.com> <ljrittle@acm.org> // -// Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -24,11 +24,9 @@ #include <ext/rope> #include <cstring> +#include <pthread.h> #include <testsuite_hooks.h> -// Do not include <pthread.h> explicitly; if threads are properly -// configured for the port, then it is picked up free from STL headers. - const int max_thread_count = 4; const int max_loop_count = 10000; |