summaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-27 19:33:33 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2015-11-27 19:33:33 +0000
commit335ce86cb6cea8046993ab93d573316fd9ff798c (patch)
tree2ebd89368155482f942fa97700e79509cabd6a9b /libgomp
parent0fb937a78af955862aef2d8780c2dded55762bd3 (diff)
downloadgcc-335ce86cb6cea8046993ab93d573316fd9ff798c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog5
-rw-r--r--libgomp/task.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 9b320b3cd55..a2ff98c6deb 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,5 +1,10 @@
2015-11-27 Jakub Jelinek <jakub@redhat.com>
+ 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.
+
PR c/63326
* testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
in between case label and OpenMP standalone directives.
diff --git a/libgomp/task.c b/libgomp/task.c
index 541008d016b..620facd3fea 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);