omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT regardless whether there...
authorJakub Jelinek <jakub@redhat.com>
Tue, 12 Apr 2016 07:05:29 +0000 (09:05 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 12 Apr 2016 07:05:29 +0000 (09:05 +0200)
commit21f3a2369bb56501115221846f63f54a035233bc
tree7d2a75e2cbcd54347feb0c7ddb5e8f6d35f11e2c
parenta3f90b8c03e73c7a2a596f3f4112eca53ea19cdf
omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT regardless whether there are depend clauses or not.

* omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
regardless whether there are depend clauses or not.

* libgomp.h (struct gomp_target_task): Remove firstprivate_copies
field.
* target.c (gomp_target_fallback_firstprivate,
gomp_target_unshare_firstprivate): Removed.
(GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
before waiting for dependencies.
(gomp_target_task_fn): Don't copy firstprivate vars here.
* task.c (GOMP_PLUGIN_target_task_completion): Don't free
firstprivate_copies here.
(gomp_create_target_task): Don't initialize firstprivate_copies field.
* testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
explicit/implicit firstprivate.

From-SVN: r234894
gcc/ChangeLog
gcc/omp-low.c
libgomp/ChangeLog
libgomp/libgomp.h
libgomp/target.c
libgomp/task.c
libgomp/testsuite/libgomp.c/target-25.c