aboutsummaryrefslogtreecommitdiff
path: root/libgomp/task.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2015-11-27 20:33:33 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2015-11-27 20:33:33 +0100
commit8e4e471966a4e97174581391b2e101ae166db5a4 (patch)
tree2ebd89368155482f942fa97700e79509cabd6a9b /libgomp/task.c
parent2c2176f5184eec90d5eeae3e3c1820abf3ac13b2 (diff)
downloadgcc-8e4e471966a4e97174581391b2e101ae166db5a4.zip
gcc-8e4e471966a4e97174581391b2e101ae166db5a4.tar.gz
gcc-8e4e471966a4e97174581391b2e101ae166db5a4.tar.bz2
re PR libgomp/68579 (FAIL: libgomp.c/target-32.c execution test)
PR libgomp/68579 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl. (gomp_create_target_task): Call it before freeing GOMP_TARGET_TASK_DATA tasks. From-SVN: r231023
Diffstat (limited to 'libgomp/task.c')
-rw-r--r--libgomp/task.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgomp/task.c b/libgomp/task.c
index 541008d..620facd 100644
--- a/libgomp/task.c
+++ b/libgomp/task.c
@@ -585,6 +585,8 @@ GOMP_PLUGIN_target_task_completion (void *data)
gomp_mutex_unlock (&team->task_lock);
}
+static void gomp_task_run_post_handle_depend_hash (struct gomp_task *);
+
/* Called for nowait target tasks. */
bool
@@ -704,6 +706,7 @@ gomp_create_target_task (struct gomp_device_descr *devicep,
}
if (state == GOMP_TARGET_TASK_DATA)
{
+ gomp_task_run_post_handle_depend_hash (task);
gomp_mutex_unlock (&team->task_lock);
gomp_finish_task (task);
free (task);