c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER.
authorCesar Philippidis <cesar@codesourcery.com>
Fri, 15 Jul 2016 14:13:48 +0000 (07:13 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Fri, 15 Jul 2016 14:13:48 +0000 (07:13 -0700)
commitb1c9c068f75c6763c0c6d1f1973e1b95f148feb7
tree24f214bc9201f4e69ce3b4eb462e9c4ce97cfc09
parentf7ba880b6b4b1c9d7437889204cac5df0268d158
c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER.

gcc/c/
* c-parser.c (c_parser_oacc_declare): Don't scan for
GOMP_MAP_POINTER.
* c-typeck.c (handle_omp_array_sections): Mark data clauses with
GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
zero-length subarrays.

gcc/cp/
* parser.c (cp_parser_oacc_declare): Don't scan for
GOMP_MAP_POINTER.
* semantics.c (handle_omp_array_sections): Mark data clauses with
GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
zero-length subarrays.

gcc/
* omp-low.c (lower_omp_target): Mark data clauses with
GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
zero-length subarrays.

libgomp/
* testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
test.

From-SVN: r238376
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/semantics.c
gcc/omp-low.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c [new file with mode: 0644]