* libgomp.h (struct gomp_task_depend_entry): Add redundant_out field. (struct gomp_taskwait): New type. (struct gomp_task): Add taskwait and parent_depends_on, remove in_taskwait and taskwait_sem fields. (gomp_finish_task): Don't destroy taskwait_sem. * task.c (gomp_init_task): Don't init in_taskwait, instead init taskwait and parent_depends_on. (GOMP_task): For if (0) tasks with depend clause that depend on earlier tasks don't defer them, instead call gomp_task_maybe_wait_for_dependencies to wait for the dependencies. Initialize redundant_out field, for redundant out entries just move them at the end of linked list instead of removing them completely, and set redundant_out flag instead of redundant. (gomp_task_run_pre): Update last_parent_depends_on if scheduling that task. (gomp_task_run_post_handle_dependers): If parent is in gomp_task_maybe_wait_for_dependencies and newly runnable task is not parent_depends_on, queue it in parent->children linked list after all runnable tasks with parent_depends_on set. Adjust for addition of taskwait indirection. (gomp_task_run_post_remove_parent): If parent is in gomp_task_maybe_wait_for_dependencies and task to be removed is parent_depends_on, decrement n_depend and if needed awake parent. Adjust for addition of taskwait indirection. (GOMP_taskwait): Adjust for addition of taskwait indirection. (gomp_task_maybe_wait_for_dependencies): New function. * testsuite/libgomp.c/depend-5.c: New test. From-SVN: r213408
| Name | Last commit | Last update | 
|---|---|---|
| .. | ||
| config | Loading commit data... | |
| testsuite | Loading commit data... | |
| ChangeLog | Loading commit data... | |
| ChangeLog.graphite | Loading commit data... | |
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| acinclude.m4 | Loading commit data... | |
| aclocal.m4 | Loading commit data... | |
| alloc.c | Loading commit data... | |
| barrier.c | Loading commit data... | |
| config.h.in | Loading commit data... | |
| configure | Loading commit data... | |
| configure.ac | Loading commit data... | |
| configure.tgt | Loading commit data... | |
| critical.c | Loading commit data... | |
| env.c | Loading commit data... | |
| error.c | Loading commit data... | |
| fortran.c | Loading commit data... | |
| hashtab.h | Loading commit data... | |
| iter.c | Loading commit data... | |
| iter_ull.c | Loading commit data... | |
| libgomp.h | Loading commit data... | |
| libgomp.map | Loading commit data... | |
| libgomp.spec.in | Loading commit data... | |
| libgomp.texi | Loading commit data... | |
| libgomp_f.h.in | Loading commit data... | |
| libgomp_g.h | Loading commit data... | |
| loop.c | Loading commit data... | |
| loop_ull.c | Loading commit data... | |
| omp.h.in | Loading commit data... | |
| omp_lib.f90.in | Loading commit data... | |
| omp_lib.h.in | Loading commit data... | |
| ordered.c | Loading commit data... | |
| parallel.c | Loading commit data... | |
| sections.c | Loading commit data... | |
| single.c | Loading commit data... | |
| target.c | Loading commit data... | |
| task.c | Loading commit data... | |
| team.c | Loading commit data... | |
| work.c | Loading commit data... |