]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pthread1.cc: Do not invoke pthread_setconcurrency on Solaris 2.6 and below.
authorEric Botcazou <ebotcazou@libertysurf.fr>
Fri, 18 Feb 2005 11:54:55 +0000 (12:54 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 18 Feb 2005 11:54:55 +0000 (11:54 +0000)
* testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
on Solaris 2.6 and below.
* 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.

From-SVN: r95221

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/thread/pthread1.cc
libstdc++-v3/testsuite/thread/pthread2.cc
libstdc++-v3/testsuite/thread/pthread3.cc
libstdc++-v3/testsuite/thread/pthread4.cc
libstdc++-v3/testsuite/thread/pthread5.cc
libstdc++-v3/testsuite/thread/pthread6.cc
libstdc++-v3/testsuite/thread/pthread7-rope.cc

index 0fab8fb8b18e32f1b59781a718e8588a4ff204a9..d74d67226963a837947e98c121ddc208a511c5ab 100644 (file)
@@ -1,3 +1,14 @@
+2005-02-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       * testsuite/thread/pthread1.cc: Do not invoke pthread_setconcurrency
+       on Solaris 2.6 and below.
+       * 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.
+
 2005-02-16  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/19829
index 1b225f202c6020bac793bd8566949bd7db13cbcf..acce015b18e939f8d70ecbe88882b9a3538bb25b 100644 (file)
@@ -112,7 +112,7 @@ main ()
 
   task_queue* tq[thread_pairs];
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (thread_pairs * 2);
 #endif
 
index 7fbdfc03aebc9d8bf6d95d19b99a620200f4c41b..7720808d928d0e9e2b62ebbb0a9f5b8a539d16dc 100644 (file)
@@ -50,7 +50,7 @@ main()
 {
   pthread_t tid[max_thread_count];
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (max_thread_count);
 #endif
 
index ca8f77147e78090b351d2d5da07c781103cf9f2d..b5cf4ceecbe99a0ba8631d9610f019cc9e265d71 100644 (file)
@@ -47,7 +47,7 @@ main()
 {
   pthread_t tid[max_thread_count];
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (max_thread_count);
 #endif
 
index be1ae680fa7ee1dfe67adf7dcc279871b2255458..4cf21e64e9c62218bccd4279dfdf8360122192ce 100644 (file)
@@ -99,7 +99,7 @@ template class __gnu_cxx::__mt_alloc<std::_List_node<std::string> >;
 int
 main (void)
 {
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (2);
 #endif
 
index b950542fd619c7be6d6cac5a34afb4fa9ddd3db2..72b50bf085649e9229b8c5b41eb1f957bab43b8f 100644 (file)
@@ -101,7 +101,7 @@ main ()
   int ids[NTHREADS];
   void* status;
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (NTHREADS);
 #endif
 
index e0fee71deac673d7843b696cb4cd11213bdfe8bf..caf371245f9a518fb1ec8b98ac0d4feb2fc8b2ac 100644 (file)
@@ -82,7 +82,7 @@ main (void)
 {
   pthread_t tid[max_thread_count];
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (max_thread_count);
 #endif
 
index 2f401344ff4d9a244354dfe437b7075f21804de1..bca733d8e0dd47460695281b008fbee1aa8243a9 100644 (file)
@@ -69,7 +69,7 @@ main()
 
   pthread_t tid[max_thread_count];
 
-#if defined(__sun) && defined(__svr4__)
+#if defined(__sun) && defined(__svr4__) && _XOPEN_VERSION >= 500
   pthread_setconcurrency (max_thread_count);
 #endif