This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/70828] broken array-type subarrays inside acc data in openacc
- From: "cesar at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2016 01:12:46 +0000
- Subject: [Bug middle-end/70828] broken array-type subarrays inside acc data in openacc
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-70828-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70828
--- Comment #2 from cesar at gcc dot gnu.org ---
Author: cesar
Date: Thu Aug 18 01:12:15 2016
New Revision: 239554
URL: https://gcc.gnu.org/viewcvs?rev=239554&root=gcc&view=rev
Log:
PR middle-end/70828
gcc/
* gimplify.c (struct gimplify_omp_ctx): Add tree clauses member.
(new_omp_context): Initialize clauses to NULL_TREE.
(gimplify_scan_omp_clauses): Set clauses in the gimplify_omp_ctx.
(omp_clause_matching_array_ref): New function.
(gomp_needs_data_present): New function.
(gimplify_adjust_omp_clauses_1): Use preset or pointer omp clause map
kinds when creating implicit data clauses for OpenACC offloaded
variables defined used an acc data region as necessary.
libgomp/
* testsuite/libgomp.oacc-c-c++-common/pr70828.c: New test.
* testsuite/libgomp.oacc-fortran/pr70828.f90: New test.
Added:
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-c-c++-common/pr70828.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.oacc-fortran/pr70828.f90
Modified:
branches/gomp-4_0-branch/gcc/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/gimplify.c
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp