* team.c (gomp_team_start): Fix setting up thread_attr
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jun 2007 20:16:53 +0000 (20:16 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Jun 2007 20:16:53 +0000 (20:16 +0000)
stack size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125542 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/team.c

index 7eceeb5..83c841c 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * team.c (gomp_team_start): Fix setting up thread_attr
+       stack size.
+
 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
 
        * configure: Regenerate.
index d114bb5..7d50bfc 100644 (file)
@@ -272,7 +272,7 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads,
       size_t stacksize;
       pthread_attr_init (&thread_attr);
       pthread_attr_setdetachstate (&thread_attr, PTHREAD_CREATE_DETACHED);
-      if (! pthread_attr_getstacksize (&thread_attr, &stacksize))
+      if (! pthread_attr_getstacksize (&gomp_thread_attr, &stacksize))
        pthread_attr_setstacksize (&thread_attr, stacksize);
       attr = &thread_attr;
     }