re PR libgomp/68579 (FAIL: libgomp.c/target-32.c execution test)
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Nov 2015 19:33:33 +0000 (20:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Nov 2015 19:33:33 +0000 (20:33 +0100)
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

libgomp/ChangeLog
libgomp/task.c

index 9b320b3cd55ca58c06d6a6f0873597addfc19683..a2ff98c6deb496d994dc5f2156621ed39bdfb887 100644 (file)
@@ -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.
index 541008d016b39f1c5ce3d1e5c114d564123d8a59..620facd3feadc24748dbd6c09f45eefb83c003bb 100644 (file)
@@ -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);