summaryrefslogtreecommitdiff
path: root/libgomp/team.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-07 20:16:53 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-07 20:16:53 +0000
commitec7f3db005dad972db8e569bcd8feafff83724f6 (patch)
tree43c4ccfc89132b00bfba245d7f6eff43b77bb1a7 /libgomp/team.c
parent6dcdb5def6dc92f06b25120cb0a5824a1b47630e (diff)
downloadgcc-ec7f3db005dad972db8e569bcd8feafff83724f6.tar.gz
* team.c (gomp_team_start): Fix setting up thread_attr
stack size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125542 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/team.c')
-rw-r--r--libgomp/team.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/team.c b/libgomp/team.c
index d114bb5de85..7d50bfc29af 100644
--- a/libgomp/team.c
+++ b/libgomp/team.c
@@ -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;
}