From: Kevin Buettner Date: Wed, 27 Mar 2019 18:30:44 +0000 (+0000) Subject: team.c (gomp_team_start): Initialize pool->threads[0]. X-Git-Tag: upstream/12.2.0~25461 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbf1efe1b46737304cde7b35a95b30d21157e54d;p=platform%2Fupstream%2Fgcc.git team.c (gomp_team_start): Initialize pool->threads[0]. libgomp/ChangeLog: * team.c (gomp_team_start): Initialize pool->threads[0]. From-SVN: r269971 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 41ee3ed..30bb2d4 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2019-03-27 Kevin Buettner + + * team.c (gomp_team_start): Initialize pool->threads[0]. + 2019-02-22 Thomas Schwinge * testsuite/libgomp.oacc-c++/c++.exp: Specify diff --git a/libgomp/team.c b/libgomp/team.c index 2b2e975..c422da3 100644 --- a/libgomp/team.c +++ b/libgomp/team.c @@ -482,6 +482,8 @@ gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, = gomp_realloc (pool->threads, pool->threads_size * sizeof (struct gomp_thread *)); + /* Add current (master) thread to threads[]. */ + pool->threads[0] = thr; } /* Release existing idle threads. */