]> git.ipfire.org Git - thirdparty/gcc.git/commit
* gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Aug 2019 06:39:02 +0000 (06:39 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Aug 2019 06:39:02 +0000 (06:39 +0000)
commit7082a9c71fb2471e98e473b08346d9cdd7e9535b
tree2420aa40b9b451dd4e3b7251149b6c8a5f7ce9c1
parent581ac4a2fe0dfa4ce470c0087679f92c06b6674e
* gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
(gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
GOVD_EXPLICIT flags.
(gimplify_omp_workshare): For OMP_TARGET_DATA move all
OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
* omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
call install_var_field with mask 11 instead of 3.
(lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
(splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
gcc/c/
* c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP
OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap
instead of generic_head to track duplicates.
gcc/cp/
* semantics.c (finish_omp_clauses): For C_ORT_OMP
OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap
instead of generic_head to track duplicates.
libgomp/
* target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
perform the lookup in the first loop only if !not_found_cnt, otherwise
perform lookups for it in the second loop guarded with
if (not_found_cnt || has_firstprivate).
* testsuite/libgomp.c/target-37.c: New test.
* testsuite/libgomp.c++/target-22.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@274206 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/gimplify.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/target.c
libgomp/testsuite/libgomp.c++/target-22.C [new file with mode: 0644]
libgomp/testsuite/libgomp.c/target-37.c [new file with mode: 0644]