r236829 - in /branches/gomp-4_0-branch: gcc/Cha...
cesar@gcc.gnu.org
cesar@gcc.gnu.org
Fri May 27 15:12:00 GMT 2016
Author: cesar
Date: Fri May 27 15:12:43 2016
New Revision: 236829
URL: https://gcc.gnu.org/viewcvs?rev=236829&root=gcc&view=rev
Log:
gcc/testsuite/
* c-c++-common/goacc/kernels-loop-offload-alias-none.c: Add xfails.
* c-c++-common/goacc/kernels-loop-offload-alias-ptr.c: Likewise.
* c-c++-common/goacc/kernels-offload-alias-2.c: Likewise.
* c-c++-common/goacc/kernels-offload-alias-3.c: Likewise.
* c-c++-common/goacc/kernels-offload-alias-6.c: Likewise.
* c-c++-common/goacc/kernels-offload-alias.c: Likewise.
* c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c:
Likewise.
* g++.dg/goacc/data-1.C: New test.
libgomp/
* testsuite/libgomp.oacc-c++/non-scalar-data.C: Adjust test.
* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Adjust
test.
* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/
kernels-parallel-loop-data-enter-exit.c: Likewise.
* testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
Backport trunk r236678:
2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
gcc/c/
* c-parser.c (c_parser_oacc_declare): Add support for
GOMP_MAP_FIRSTPRIVATE_POINTER.
* c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
argument with enum c_omp_region_type ort.
(handle_omp_array_sections): Likewise. Update call to
handle_omp_array_sections_1.
(c_finish_omp_clauses): Add specific errors and warning messages for
OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
call to handle_omp_array_sections.
gcc/cp/
* parser.c (cp_parser_oacc_declare): Add support for
GOMP_MAP_FIRSTPRIVATE_POINTER.
* semantics.c (handle_omp_array_sections_1): Replace bool is_omp
argument with enum c_omp_region_type ort. Don't privatize OpenACC
non-static members.
(handle_omp_array_sections): Replace bool is_omp argument with enum
c_omp_region_type ort. Update call to handle_omp_array_sections_1.
(finish_omp_clauses): Add specific errors and warning messages for
OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
call to handle_omp_array_sections.
gcc/
* gimplify.c (omp_notice_variable): Use zero-length arrays for data
pointers inside OACC_DATA regions.
(gimplify_scan_omp_clauses): Prune firstprivate clause associated
with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
(gimplify_adjust_omp_clauses): Fix typo in comment.
gcc/testsuite/
* c-c++-common/goacc/data-clause-duplicate-1.c: Adjust test.
* c-c++-common/goacc/deviceptr-1.c: Likewise.
* c-c++-common/goacc/kernels-alias-3.c: Likewise.
* c-c++-common/goacc/kernels-alias-4.c: Likewise.
* c-c++-common/goacc/kernels-alias-5.c: Likewise.
* c-c++-common/goacc/kernels-alias-8.c: Likewise.
* c-c++-common/goacc/kernels-alias-ipa-pta-3.c: Likewise.
* c-c++-common/goacc/pcopy.c: Likewise.
* c-c++-common/goacc/pcopyin.c: Likewise.
* c-c++-common/goacc/pcopyout.c: Likewise.
* c-c++-common/goacc/pcreate.c: Likewise.
* c-c++-common/goacc/pr70688.c: New test.
* c-c++-common/goacc/present-1.c: Adjust test.
* c-c++-common/goacc/reduction-5.c: Likewise.
* g++.dg/goacc/data-1.C: New test.
libgomp/
* oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
(acc_free): Likewise.
(acc_memcpy_to_device): Likewise.
(acc_memcpy_from_device): Likewise.
(acc_deviceptr): Likewise.
(acc_hostptr): Likewise.
(acc_is_present): Likewise.
(acc_map_data): Likewise.
(acc_unmap_data): Likewise.
(present_create_copy): Likewise.
(delete_copyout): Likewise.
(update_dev_host): Likewise.
* testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
* testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
* testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
* testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
it only runs on nvptx targets.
* testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
Added:
branches/gomp-4_0-branch/gcc/testsuite/g++.dg/goacc/data-1.C
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c
Modified:
branches/gomp-4_0-branch/gcc/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/c/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/c/c-parser.c
branches/gomp-4_0-branch/gcc/c/c-typeck.c
branches/gomp-4_0-branch/gcc/cp/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/cp/parser.c
branches/gomp-4_0-branch/gcc/cp/semantics.c
branches/gomp-4_0-branch/gcc/gimplify.c
branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/data-clause-duplicate-1.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/deviceptr-1.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-alias-8.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-alias-ipa-pta-3.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-none.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-loop-offload-alias-ptr.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-offload-alias-2.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-offload-alias-3.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-offload-alias-6.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-offload-alias.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/pcopy.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/pcopyin.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/pcopyout.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/pcreate.c
branches/gomp-4_0-branch/gcc/testsuite/c-c++-common/goacc/present-1.c
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
branches/gomp-4_0-branch/libgomp/oacc-mem.c
branches/gomp-4_0-branch/libgomp/oacc-parallel.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c++/non-scalar-data.C
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/data-3.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-13.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-14.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-15.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-16.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-17.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-18.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-20.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-21.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-22.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-23.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-24.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-25.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-28.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-29.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-30.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-34.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-43.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-44.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-47.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-48.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-52.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-53.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-54.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/lib-14.f90
More information about the Gcc-cvs
mailing list