]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
OpenMP/OpenACC tests. vs C++26
authorJakub Jelinek <jakub@redhat.com>
Mon, 17 Nov 2025 08:42:56 +0000 (09:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 17 Nov 2025 08:42:56 +0000 (09:42 +0100)
OpenMP/OpenACC array sections, generally expr[expr:expr] or
expr[expr:expr:expr] can have any of the exprs between [ and ]
omitted, low-bound (first defaults to 0, last (stride) defaults to
1 and the middle (length) for some arrays defaults to
ceil((size − lower_bound)/stride).
People have been writing this for years without spaces between [ and :
and : and ] when that expr has been omitted, but guess for C++26
one needs to add a space.  I think [ :: ] isn't going to be parsed
as the same as [ : : ] either.

gcc/testsuite/
* c-c++-common/goacc/cache-3-1.c: Add dg-skip-if for c++26.
* g++.dg/goacc/data-clause-2.C: Likewise.
* g++.dg/gomp/allocate-3.C: Likewise.
* c-c++-common/gomp/affinity-2.c: Use { c || c++23_down } effective
target.
* c-c++-common/goacc/cache-3-2.c: Replace [: in OpenMP or OpenACC
pragmas or attributes with [ : and :] with : ].
* c-c++-common/goacc/data-clause-1.c: Likewise.
* c-c++-common/goacc/data-clause-2.c: Likewise.
* c-c++-common/goacc/data-clause-duplicate-1.c: Likewise.
* c-c++-common/goacc/mdc-2.c: Likewise.
* c-c++-common/goacc/readonly-1.c: Likewise.
* c-c++-common/gomp/allocate-4.c: Likewise.
* c-c++-common/gomp/clauses-3.c: Likewise.
* c-c++-common/gomp/declare-mapper-3.c: Likewise.
* c-c++-common/gomp/depend-1.c: Likewise.
* c-c++-common/gomp/depend-2.c: Likewise.
* c-c++-common/gomp/depend-3.c: Likewise.
* c-c++-common/gomp/depend-4.c: Likewise.
* c-c++-common/gomp/depend-5.c: Likewise.
* c-c++-common/gomp/depend-6.c: Likewise.
* c-c++-common/gomp/dispatch-1.c: Likewise.
* c-c++-common/gomp/loop-5.c: Likewise.
* c-c++-common/gomp/map-1.c: Likewise.
* c-c++-common/gomp/map-2.c: Likewise.
* c-c++-common/gomp/map-4.c: Likewise.
* c-c++-common/gomp/map-7.c: Likewise.
* c-c++-common/gomp/pr100902-1.c: Likewise.
* c-c++-common/gomp/pr103642.c: Likewise.
* c-c++-common/gomp/pr120180-1.c: Likewise.
* c-c++-common/gomp/pr61486-1.c: Likewise.
* c-c++-common/gomp/pr81006.c: Likewise.
* c-c++-common/gomp/pr91920.c: Likewise.
* c-c++-common/gomp/pr96867.c: Likewise.
* c-c++-common/gomp/pr99928-16.c: Likewise.
* c-c++-common/gomp/reduction-1.c: Likewise.
* c-c++-common/gomp/scan-1.c: Likewise.
* c-c++-common/gomp/target-data-1.c: Likewise.
* c-c++-common/gomp/target-enter-data-1.c: Likewise.
* c-c++-common/gomp/target-has-device-addr-1.c: Likewise.
* c-c++-common/gomp/target-implicit-map-2.c: Likewise.
* c-c++-common/gomp/target-map-iterators-1.c: Likewise.
* c-c++-common/gomp/target-map-iterators-3.c: Likewise.
* c-c++-common/gomp/target-update-iterators-1.c: Likewise.
* c-c++-common/gomp/target-update-iterators-3.c: Likewise.
* g++.dg/goacc/cache-3-1.C: Likewise.
* g++.dg/goacc/cache-3-2.C: Likewise.
* g++.dg/goacc/data-clause-1.C: Likewise.
* g++.dg/goacc/mdc.C: Likewise.
* g++.dg/gomp/array-section-2.C: Likewise.
* g++.dg/gomp/bad-array-section-10.C: Likewise.
* g++.dg/gomp/bad-array-section-11.C: Likewise.
* g++.dg/gomp/bad-array-section-9.C: Likewise.
* g++.dg/gomp/declare-mapper-1.C: Likewise.
* g++.dg/gomp/declare-mapper-2.C: Likewise.
* g++.dg/gomp/depend-1.C: Likewise.
* g++.dg/gomp/depend-2.C: Likewise.
* g++.dg/gomp/ind-base-3.C: Likewise.
* g++.dg/gomp/map-1.C: Likewise.
* g++.dg/gomp/map-2.C: Likewise.
* g++.dg/gomp/map-ptrmem-1.C: Likewise.
* g++.dg/gomp/map-ptrmem-2.C: Likewise.
* g++.dg/gomp/member-array-2.C: Likewise.
* g++.dg/gomp/target-this-3.C: Likewise.
* g++.dg/gomp/target-this-4.C: Likewise.
libgomp/
* testsuite/libgomp.c++/allocate-1.C: Replace [: in OpenMP or OpenACC
pragmas or attributes with [ : and :] with : ].
* testsuite/libgomp.c++/baseptrs-3.C: Likewise.
* testsuite/libgomp.c++/baseptrs-5.C: Likewise.
* testsuite/libgomp.c++/class-array-1.C: Likewise.
* testsuite/libgomp.c++/examples-4/target_data-5.C: Likewise.
* testsuite/libgomp.c++/lvalue-tofrom-2.C: Likewise.
* testsuite/libgomp.c++/pr101544-1.C: Likewise.
* testsuite/libgomp.c++/pr108286.C: Likewise.
* testsuite/libgomp.c++/reduction-10.C: Likewise.
* testsuite/libgomp.c++/reduction-11.C: Likewise.
* testsuite/libgomp.c++/reduction-12.C: Likewise.
* testsuite/libgomp.c++/reduction-5.C: Likewise.
* testsuite/libgomp.c++/reduction-6.C: Likewise.
* testsuite/libgomp.c++/reduction-7.C: Likewise.
* testsuite/libgomp.c++/reduction-8.C: Likewise.
* testsuite/libgomp.c++/reduction-9.C: Likewise.
* testsuite/libgomp.c++/target-18.C: Likewise.
* testsuite/libgomp.c++/target-19.C: Likewise.
* testsuite/libgomp.c++/target-2.C: Likewise.
* testsuite/libgomp.c++/target-22.C: Likewise.
* testsuite/libgomp.c++/target-23.C: Likewise.
* testsuite/libgomp.c++/target-9.C: Likewise.
* testsuite/libgomp.c++/target-flex-100.C: Likewise.
* testsuite/libgomp.c++/target-flex-101.C: Likewise.
* testsuite/libgomp.c++/target-flex-12.C: Likewise.
* testsuite/libgomp.c++/target-flex-2003.C: Likewise.
* testsuite/libgomp.c++/target-flex-30.C: Likewise.
* testsuite/libgomp.c++/target-flex-300.C: Likewise.
* testsuite/libgomp.c++/target-flex-32.C: Likewise.
* testsuite/libgomp.c++/target-flex-33.C: Likewise.
* testsuite/libgomp.c++/target-flex-41.C: Likewise.
* testsuite/libgomp.c++/target-flex-60.C: Likewise.
* testsuite/libgomp.c++/target-flex-61.C: Likewise.
* testsuite/libgomp.c++/target-flex-62.C: Likewise.
* testsuite/libgomp.c++/target-flex-80.C: Likewise.
* testsuite/libgomp.c++/target-flex-81.C: Likewise.
* testsuite/libgomp.c++/target-has-device-addr-7.C: Likewise.
* testsuite/libgomp.c++/target-in-reduction-1.C: Likewise.
* testsuite/libgomp.c++/target-in-reduction-2.C: Likewise.
* testsuite/libgomp.c++/target-lambda-1.C: Likewise.
* testsuite/libgomp.c++/target-lambda-3.C: Likewise.
* testsuite/libgomp.c++/target-map-class-1.C: Likewise.
* testsuite/libgomp.c++/target-std__array-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__bitset-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__deque-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__flat_map-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__flat_multimap-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__flat_multiset-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__flat_set-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__forward_list-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__list-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__map-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__multimap-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__multiset-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__set-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__span-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__unordered_map-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__unordered_multimap-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__unordered_multiset-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__unordered_set-concurrent.C:
Likewise.
* testsuite/libgomp.c++/target-std__valarray-1.C: Likewise.
* testsuite/libgomp.c++/target-std__valarray-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-std__vector-concurrent.C: Likewise.
* testsuite/libgomp.c++/target-this-3.C: Likewise.
* testsuite/libgomp.c++/target-this-4.C: Likewise.
* testsuite/libgomp.c++/target-virtual-1.C: Likewise.
* testsuite/libgomp.c++/task-reduction-11.C: Likewise.
* testsuite/libgomp.c++/task-reduction-12.C: Likewise.
* testsuite/libgomp.c++/task-reduction-13.C: Likewise.
* testsuite/libgomp.c++/task-reduction-17.C: Likewise.
* testsuite/libgomp.c++/task-reduction-18.C: Likewise.
* testsuite/libgomp.c++/task-reduction-19.C: Likewise.
* testsuite/libgomp.c++/task-reduction-4.C: Likewise.
* testsuite/libgomp.c++/task-reduction-5.C: Likewise.
* testsuite/libgomp.c++/task-reduction-6.C: Likewise.
* testsuite/libgomp.c++/task-reduction-7.C: Likewise.
* testsuite/libgomp.c++/taskloop-reduction-2.C: Likewise.
* testsuite/libgomp.c++/taskloop-reduction-3.C: Likewise.
* testsuite/libgomp.c++/taskloop-reduction-4.C: Likewise.
* testsuite/libgomp.c-c++-common/allocate-1.c: Likewise.
* testsuite/libgomp.c-c++-common/allocate-3.c: Likewise.
* testsuite/libgomp.c-c++-common/baseptrs-2.c: Likewise.
* testsuite/libgomp.c-c++-common/dispatch-1.c: Likewise.
* testsuite/libgomp.c-c++-common/dispatch-2.c: Likewise.
* testsuite/libgomp.c-c++-common/interop-2.c: Likewise.
* testsuite/libgomp.c-c++-common/matrix-omp-target-teams-distribute-parallel-for-1.c:
Likewise.
* testsuite/libgomp.c-c++-common/ptr-attach-1.c: Likewise.
* testsuite/libgomp.c-c++-common/ptr-attach-2.c: Likewise.
* testsuite/libgomp.c-c++-common/refcount-1.c: Likewise.
* testsuite/libgomp.c-c++-common/struct-elem-4.c: Likewise.
* testsuite/libgomp.c-c++-common/target-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-has-device-addr-1.c: Likewise.
* testsuite/libgomp.c-c++-common/target-implicit-map-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-implicit-map-5.c: Likewise.
* testsuite/libgomp.c-c++-common/target-in-reduction-1.c: Likewise.
* testsuite/libgomp.c-c++-common/target-in-reduction-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-map-iterators-1.c: Likewise.
* testsuite/libgomp.c-c++-common/target-map-iterators-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-map-iterators-3.c: Likewise.
* testsuite/libgomp.c-c++-common/target-map-zlas-1.c: Likewise.
* testsuite/libgomp.c-c++-common/target-update-iterators-1.c: Likewise.
* testsuite/libgomp.c-c++-common/target-update-iterators-2.c: Likewise.
* testsuite/libgomp.c-c++-common/target-update-iterators-3.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-11.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-12.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-16.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-3.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-7.c: Likewise.
* testsuite/libgomp.c-c++-common/task-reduction-9.c: Likewise.
* testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: Likewise.
* testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.

182 files changed:
gcc/testsuite/c-c++-common/goacc/cache-3-1.c
gcc/testsuite/c-c++-common/goacc/cache-3-2.c
gcc/testsuite/c-c++-common/goacc/data-clause-1.c
gcc/testsuite/c-c++-common/goacc/data-clause-2.c
gcc/testsuite/c-c++-common/goacc/data-clause-duplicate-1.c
gcc/testsuite/c-c++-common/goacc/mdc-2.c
gcc/testsuite/c-c++-common/goacc/readonly-1.c
gcc/testsuite/c-c++-common/gomp/affinity-2.c
gcc/testsuite/c-c++-common/gomp/allocate-4.c
gcc/testsuite/c-c++-common/gomp/clauses-3.c
gcc/testsuite/c-c++-common/gomp/declare-mapper-3.c
gcc/testsuite/c-c++-common/gomp/depend-1.c
gcc/testsuite/c-c++-common/gomp/depend-2.c
gcc/testsuite/c-c++-common/gomp/depend-3.c
gcc/testsuite/c-c++-common/gomp/depend-4.c
gcc/testsuite/c-c++-common/gomp/depend-5.c
gcc/testsuite/c-c++-common/gomp/depend-6.c
gcc/testsuite/c-c++-common/gomp/dispatch-1.c
gcc/testsuite/c-c++-common/gomp/loop-5.c
gcc/testsuite/c-c++-common/gomp/map-1.c
gcc/testsuite/c-c++-common/gomp/map-2.c
gcc/testsuite/c-c++-common/gomp/map-4.c
gcc/testsuite/c-c++-common/gomp/map-7.c
gcc/testsuite/c-c++-common/gomp/pr100902-1.c
gcc/testsuite/c-c++-common/gomp/pr103642.c
gcc/testsuite/c-c++-common/gomp/pr120180-1.c
gcc/testsuite/c-c++-common/gomp/pr61486-1.c
gcc/testsuite/c-c++-common/gomp/pr81006.c
gcc/testsuite/c-c++-common/gomp/pr91920.c
gcc/testsuite/c-c++-common/gomp/pr96867.c
gcc/testsuite/c-c++-common/gomp/pr99928-16.c
gcc/testsuite/c-c++-common/gomp/reduction-1.c
gcc/testsuite/c-c++-common/gomp/scan-1.c
gcc/testsuite/c-c++-common/gomp/target-data-1.c
gcc/testsuite/c-c++-common/gomp/target-enter-data-1.c
gcc/testsuite/c-c++-common/gomp/target-has-device-addr-1.c
gcc/testsuite/c-c++-common/gomp/target-implicit-map-2.c
gcc/testsuite/c-c++-common/gomp/target-map-iterators-1.c
gcc/testsuite/c-c++-common/gomp/target-map-iterators-3.c
gcc/testsuite/c-c++-common/gomp/target-update-iterators-1.c
gcc/testsuite/c-c++-common/gomp/target-update-iterators-3.c
gcc/testsuite/g++.dg/goacc/cache-3-1.C
gcc/testsuite/g++.dg/goacc/cache-3-2.C
gcc/testsuite/g++.dg/goacc/data-clause-1.C
gcc/testsuite/g++.dg/goacc/data-clause-2.C
gcc/testsuite/g++.dg/goacc/mdc.C
gcc/testsuite/g++.dg/gomp/allocate-3.C
gcc/testsuite/g++.dg/gomp/array-section-2.C
gcc/testsuite/g++.dg/gomp/bad-array-section-10.C
gcc/testsuite/g++.dg/gomp/bad-array-section-11.C
gcc/testsuite/g++.dg/gomp/bad-array-section-9.C
gcc/testsuite/g++.dg/gomp/declare-mapper-1.C
gcc/testsuite/g++.dg/gomp/declare-mapper-2.C
gcc/testsuite/g++.dg/gomp/depend-1.C
gcc/testsuite/g++.dg/gomp/depend-2.C
gcc/testsuite/g++.dg/gomp/ind-base-3.C
gcc/testsuite/g++.dg/gomp/map-1.C
gcc/testsuite/g++.dg/gomp/map-2.C
gcc/testsuite/g++.dg/gomp/map-ptrmem-1.C
gcc/testsuite/g++.dg/gomp/map-ptrmem-2.C
gcc/testsuite/g++.dg/gomp/member-array-2.C
gcc/testsuite/g++.dg/gomp/target-this-3.C
gcc/testsuite/g++.dg/gomp/target-this-4.C
libgomp/testsuite/libgomp.c++/allocate-1.C
libgomp/testsuite/libgomp.c++/baseptrs-3.C
libgomp/testsuite/libgomp.c++/baseptrs-5.C
libgomp/testsuite/libgomp.c++/class-array-1.C
libgomp/testsuite/libgomp.c++/examples-4/target_data-5.C
libgomp/testsuite/libgomp.c++/lvalue-tofrom-2.C
libgomp/testsuite/libgomp.c++/pr101544-1.C
libgomp/testsuite/libgomp.c++/pr108286.C
libgomp/testsuite/libgomp.c++/reduction-10.C
libgomp/testsuite/libgomp.c++/reduction-11.C
libgomp/testsuite/libgomp.c++/reduction-12.C
libgomp/testsuite/libgomp.c++/reduction-5.C
libgomp/testsuite/libgomp.c++/reduction-6.C
libgomp/testsuite/libgomp.c++/reduction-7.C
libgomp/testsuite/libgomp.c++/reduction-8.C
libgomp/testsuite/libgomp.c++/reduction-9.C
libgomp/testsuite/libgomp.c++/target-18.C
libgomp/testsuite/libgomp.c++/target-19.C
libgomp/testsuite/libgomp.c++/target-2.C
libgomp/testsuite/libgomp.c++/target-22.C
libgomp/testsuite/libgomp.c++/target-23.C
libgomp/testsuite/libgomp.c++/target-9.C
libgomp/testsuite/libgomp.c++/target-flex-100.C
libgomp/testsuite/libgomp.c++/target-flex-101.C
libgomp/testsuite/libgomp.c++/target-flex-12.C
libgomp/testsuite/libgomp.c++/target-flex-2003.C
libgomp/testsuite/libgomp.c++/target-flex-30.C
libgomp/testsuite/libgomp.c++/target-flex-300.C
libgomp/testsuite/libgomp.c++/target-flex-32.C
libgomp/testsuite/libgomp.c++/target-flex-33.C
libgomp/testsuite/libgomp.c++/target-flex-41.C
libgomp/testsuite/libgomp.c++/target-flex-60.C
libgomp/testsuite/libgomp.c++/target-flex-61.C
libgomp/testsuite/libgomp.c++/target-flex-62.C
libgomp/testsuite/libgomp.c++/target-flex-80.C
libgomp/testsuite/libgomp.c++/target-flex-81.C
libgomp/testsuite/libgomp.c++/target-has-device-addr-7.C
libgomp/testsuite/libgomp.c++/target-in-reduction-1.C
libgomp/testsuite/libgomp.c++/target-in-reduction-2.C
libgomp/testsuite/libgomp.c++/target-lambda-1.C
libgomp/testsuite/libgomp.c++/target-lambda-3.C
libgomp/testsuite/libgomp.c++/target-map-class-1.C
libgomp/testsuite/libgomp.c++/target-std__array-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__bitset-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__deque-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__flat_map-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__flat_multimap-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__flat_multiset-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__flat_set-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__forward_list-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__list-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__map-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__multimap-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__multiset-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__set-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__span-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__unordered_map-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__unordered_multimap-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__unordered_multiset-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__unordered_set-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__valarray-1.C
libgomp/testsuite/libgomp.c++/target-std__valarray-concurrent.C
libgomp/testsuite/libgomp.c++/target-std__vector-concurrent.C
libgomp/testsuite/libgomp.c++/target-this-3.C
libgomp/testsuite/libgomp.c++/target-this-4.C
libgomp/testsuite/libgomp.c++/target-virtual-1.C
libgomp/testsuite/libgomp.c++/task-reduction-11.C
libgomp/testsuite/libgomp.c++/task-reduction-12.C
libgomp/testsuite/libgomp.c++/task-reduction-13.C
libgomp/testsuite/libgomp.c++/task-reduction-17.C
libgomp/testsuite/libgomp.c++/task-reduction-18.C
libgomp/testsuite/libgomp.c++/task-reduction-19.C
libgomp/testsuite/libgomp.c++/task-reduction-4.C
libgomp/testsuite/libgomp.c++/task-reduction-5.C
libgomp/testsuite/libgomp.c++/task-reduction-6.C
libgomp/testsuite/libgomp.c++/task-reduction-7.C
libgomp/testsuite/libgomp.c++/taskloop-reduction-2.C
libgomp/testsuite/libgomp.c++/taskloop-reduction-3.C
libgomp/testsuite/libgomp.c++/taskloop-reduction-4.C
libgomp/testsuite/libgomp.c-c++-common/allocate-1.c
libgomp/testsuite/libgomp.c-c++-common/allocate-3.c
libgomp/testsuite/libgomp.c-c++-common/baseptrs-2.c
libgomp/testsuite/libgomp.c-c++-common/dispatch-1.c
libgomp/testsuite/libgomp.c-c++-common/dispatch-2.c
libgomp/testsuite/libgomp.c-c++-common/interop-2.c
libgomp/testsuite/libgomp.c-c++-common/matrix-omp-target-teams-distribute-parallel-for-1.c
libgomp/testsuite/libgomp.c-c++-common/ptr-attach-1.c
libgomp/testsuite/libgomp.c-c++-common/ptr-attach-2.c
libgomp/testsuite/libgomp.c-c++-common/refcount-1.c
libgomp/testsuite/libgomp.c-c++-common/struct-elem-4.c
libgomp/testsuite/libgomp.c-c++-common/target-2.c
libgomp/testsuite/libgomp.c-c++-common/target-has-device-addr-1.c
libgomp/testsuite/libgomp.c-c++-common/target-implicit-map-2.c
libgomp/testsuite/libgomp.c-c++-common/target-implicit-map-5.c
libgomp/testsuite/libgomp.c-c++-common/target-in-reduction-1.c
libgomp/testsuite/libgomp.c-c++-common/target-in-reduction-2.c
libgomp/testsuite/libgomp.c-c++-common/target-map-iterators-1.c
libgomp/testsuite/libgomp.c-c++-common/target-map-iterators-2.c
libgomp/testsuite/libgomp.c-c++-common/target-map-iterators-3.c
libgomp/testsuite/libgomp.c-c++-common/target-map-zlas-1.c
libgomp/testsuite/libgomp.c-c++-common/target-update-iterators-1.c
libgomp/testsuite/libgomp.c-c++-common/target-update-iterators-2.c
libgomp/testsuite/libgomp.c-c++-common/target-update-iterators-3.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-11.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-12.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-16.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-3.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-7.c
libgomp/testsuite/libgomp.c-c++-common/task-reduction-9.c
libgomp/testsuite/libgomp.c-c++-common/taskloop-reduction-2.c
libgomp/testsuite/libgomp.c-c++-common/teams-nteams-icv-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-16.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c
libgomp/testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c

index 5318a57d51e16721ee40430ed90c327bdd274891..5577d71fa1943d1e4522435a017c7e23bc14374f 100644 (file)
@@ -6,6 +6,10 @@
 
 /* { dg-additional-options "-fopenmp" } for '#pragma omp threadprivate'.  */
 
+/* Array sections without spaces between [ and : or : and ] are incompatible
+   with C++26.  */
+/* { dg-skip-if "array sections vs. C++26" { c++26 } } */
+
 /* The current implementation doesn't restrict where a 'cache' directive may
    appear, so we don't make any special arrangements.  */
 
index ea5222e7d0cdf582efaa42a4d97928414a2d6551..0c651c6ab7ff8a51c5bbd00528e4773603d7dbfb 100644 (file)
@@ -19,25 +19,25 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma acc cache (r[-1:2])
   ;
-  #pragma acc cache (s[-1:2][:])
+  #pragma acc cache (s[-1:2][ : ])
   ;
   #pragma acc cache (s[-1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (a[-1:2])   /* { dg-error "negative low bound in array section in" } */
   ;
-  #pragma acc cache (b[-1:2][0:])       /* { dg-error "negative low bound in array section in" } */
+  #pragma acc cache (b[-1:2][0: ])      /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (b[1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (p[2:-3])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc cache (q[2:-3][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc cache (q[2:-3][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (q[2:3][0:-1])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (r[2:-5])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc cache (s[2:-5][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc cache (s[2:-5][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (s[2:5][0:-4])      /* { dg-error "negative length in array section in" } */
   ;
index 9952ac4fb4feea806689d98b08fe58b4944401a6..b9871ec2cd58d77f2a848c03aa7f1791cf3e4caf 100644 (file)
@@ -30,13 +30,13 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc parallel copyout(t[2:5]) /* { dg-error "is threadprivate variable" } */
     ;
-  #pragma acc parallel copy(k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copy(k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copyout(l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copyout(l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copyin(m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copyin(m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copy(n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copy(n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma acc parallel copyin(o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
@@ -44,72 +44,72 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc parallel create(s2) /* { dg-error "'s2' does not have a mappable type in 'map' clause" } */
     ;
-  #pragma acc parallel copyin(a[:][:]) /* { dg-error "array type length expression must be specified" } */
+  #pragma acc parallel copyin(a[ : ][ : ]) /* { dg-error "array type length expression must be specified" } */
     bar (&a[0][0]); /* { dg-error "referenced in target region does not have a mappable type" } */
-  #pragma acc parallel copy(b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc parallel copy(b[-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (b);
-  #pragma acc parallel copy(c[:-3][:]) /* { dg-error "negative length in array section" } */
+  #pragma acc parallel copy(c[ :-3][ : ]) /* { dg-error "negative length in array section" } */
     bar (&c[0][0]);
-  #pragma acc parallel copyout(d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyout(d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (d);
-  #pragma acc parallel copyin(e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyin(e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (e);
   #pragma acc parallel copyin(f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (f);
-  #pragma acc parallel copyout(g[:][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma acc parallel copyout(g[ : ][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
     bar (&g[0][0]);
-  #pragma acc parallel copyout(h[2:1][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc parallel copyout(h[2:1][-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (&h[0][0]);
-  #pragma acc parallel copy(h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma acc parallel copy(h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     bar (&h[0][0]);
-  #pragma acc parallel copy(i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc parallel copy(i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (&i[0][0]);
-  #pragma acc parallel copyout(j[3:1][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyout(j[3:1][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
   #pragma acc parallel copyin(j[30:1][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
-  #pragma acc parallel copyin(a2[:1][2:4])
+  #pragma acc parallel copyin(a2[ :1][2:4])
     bar (&a2[0][0]);
-  #pragma acc parallel copy(a2[3:5][:])
+  #pragma acc parallel copy(a2[3:5][ : ])
     bar (&a2[0][0]);
-  #pragma acc parallel copyin(a2[3:5][:10])
+  #pragma acc parallel copyin(a2[3:5][ :10])
     bar (&a2[0][0]);
-  #pragma acc parallel copy(b2[0:])
+  #pragma acc parallel copy(b2[0: ])
     bar (b2);
-  #pragma acc parallel copy(c2[:3][:])
+  #pragma acc parallel copy(c2[ :3][ : ])
     bar (&c2[0][0]);
-  #pragma acc parallel copyout(d2[9:])
+  #pragma acc parallel copyout(d2[9: ])
     bar (d2);
-  #pragma acc parallel copyin(e2[:10])
+  #pragma acc parallel copyin(e2[ :10])
     bar (e2);
   #pragma acc parallel copyin(f2[1:9])
     bar (f2);
-  #pragma acc parallel copy(g2[:1][2:4])
+  #pragma acc parallel copy(g2[ :1][2:4])
     bar (&g2[0][0]);
-  #pragma acc parallel copyout(h2[2:2][0:])
+  #pragma acc parallel copyout(h2[2:2][0: ])
     bar (&h2[0][0]);
-  #pragma acc parallel copy(h2[:1][:3])
+  #pragma acc parallel copy(h2[ :1][ :3])
     bar (&h2[0][0]);
-  #pragma acc parallel copyin(i2[:1][9:])
+  #pragma acc parallel copyin(i2[ :1][9: ])
     bar (&i2[0][0]);
-  #pragma acc parallel copyout(j2[3:4][:9])
+  #pragma acc parallel copyout(j2[3:4][ :9])
     bar (&j2[0][0]);
   #pragma acc parallel copyin(j2[30:1][5:4])
     bar (&j2[0][0]);
   #pragma acc parallel copy(q[1:2])
     ;
-  #pragma acc parallel copy(q[3:5][:10]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(q[3:5][ :10]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2])
+  #pragma acc parallel copy(r[3: ][2:1][1:2])
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][0:4])
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][0:4])
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][1:][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][1: ][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:3][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ :3][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][1:]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][1: ]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][:3]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][ :3]) /* { dg-error "array section is not contiguous" } */
     ;
 }
index d4603b016dd600f5ccb443af352d283d56c335c7..84c7daca1ab85337cd1f962e88ae069b4674a949 100644 (file)
@@ -18,25 +18,25 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma acc parallel copy (r[-1:2])
   ;
-  #pragma acc parallel copy (s[-1:2][:])
+  #pragma acc parallel copy (s[-1:2][ : ])
   ;
   #pragma acc parallel copy (s[-1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc parallel copy (a[-1:2])   /* { dg-error "negative low bound in array section in" } */
   ;
-  #pragma acc parallel copy (b[-1:2][0:])       /* { dg-error "negative low bound in array section in" } */
+  #pragma acc parallel copy (b[-1:2][0: ])      /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc parallel copy (b[1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc parallel copy (p[2:-3])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc parallel copy (q[2:-3][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc parallel copy (q[2:-3][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc parallel copy (q[2:3][0:-1])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc parallel copy (r[2:-5])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc parallel copy (s[2:-5][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc parallel copy (s[2:-5][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc parallel copy (s[2:5][0:-4])      /* { dg-error "negative length in array section in" } */
   ;
index c87ef8bee84c9546386b355cfd1f4c6d67f46103..3f7773d629f0c17af1e6c7593dc1e318bf5cc201 100644 (file)
@@ -8,7 +8,7 @@ fun (void)
   ;
 #pragma acc serial present(fp[0:2]) copyin(fp[0:2]) /* { dg-error "'fp' appears more than once in data clauses" } */
   ;
-#pragma acc data create(fp[:10]) deviceptr(fp) /* { dg-error "'fp' appears more than once in data clauses" } */
+#pragma acc data create(fp[ :10]) deviceptr(fp) /* { dg-error "'fp' appears more than once in data clauses" } */
   ;
 #pragma acc data create(fp) present(fp) /* { dg-error "'fp' appears more than once in data clauses" } */
   ;
index 246625c76a211d1e4cbeb8855be29abb01f3e944..8ddda0823f16acfb779575fb23dadc6d57e677cf 100644 (file)
@@ -24,17 +24,17 @@ t1 ()
 #pragma acc exit data detach(a)
     }
 
-#pragma acc enter data attach(z[:5]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(z[ :5]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(z[:5]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(z[ :5]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc enter data attach(z[1:]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(z[1: ]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(z[1:]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(z[1: ]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc enter data attach(z[:]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(z[ : ]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(z[:]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(z[ : ]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc enter data attach(z[3]) /* { dg-error "expected pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
index 300464c92e3f17e3410dda2a55d4d0488f839853..a2fae4c2096474791bfb483cde6ec13d630a29b0 100644 (file)
@@ -15,33 +15,33 @@ int main (void)
   int x[32], y[32];
   struct S s = {x, 0};
 
-  #pragma acc declare copyin(readonly: x/*[:32]*/, s/*.ptr[:16]*/) copyin(y/*[:32]*/)
+  #pragma acc declare copyin(readonly: x/*[ :32]*/, s/*.ptr[ :16]*/) copyin(y/*[ :32]*/)
 
-  #pragma acc parallel copyin(readonly: x[:32], s.ptr[:16]) copyin(y[:32])
+  #pragma acc parallel copyin(readonly: x[ :32], s.ptr[ :16]) copyin(y[ :32])
   {
-    #pragma acc cache (readonly: x[:32])
-    #pragma acc cache (y[:32])
+    #pragma acc cache (readonly: x[ :32])
+    #pragma acc cache (y[ :32])
   }
 
-  #pragma acc kernels copyin(readonly: x[:32], s.ptr[:16]) copyin(y[:32])
+  #pragma acc kernels copyin(readonly: x[ :32], s.ptr[ :16]) copyin(y[ :32])
   {
-    #pragma acc cache (readonly: x[:32])
-    #pragma acc cache (y[:32])
+    #pragma acc cache (readonly: x[ :32])
+    #pragma acc cache (y[ :32])
   }
 
-  #pragma acc serial copyin(readonly: x[:32], s.ptr[:16]) copyin(y[:32])
+  #pragma acc serial copyin(readonly: x[ :32], s.ptr[ :16]) copyin(y[ :32])
   {
-    #pragma acc cache (readonly: x[:32])
-    #pragma acc cache (y[:32])
+    #pragma acc cache (readonly: x[ :32])
+    #pragma acc cache (y[ :32])
   }
 
-  #pragma acc data copyin(readonly: x[:32], s.ptr[:16]) copyin(y[:32])
+  #pragma acc data copyin(readonly: x[ :32], s.ptr[ :16]) copyin(y[ :32])
   {
-    #pragma acc cache (readonly: x[:32])
-    #pragma acc cache (y[:32])
+    #pragma acc cache (readonly: x[ :32])
+    #pragma acc cache (y[ :32])
   }
 
-  #pragma acc enter data copyin(readonly: x[:32], s.ptr[:16]) copyin(y[:32])
+  #pragma acc enter data copyin(readonly: x[ :32], s.ptr[ :16]) copyin(y[ :32])
 
   return 0;
 }
index 7f3029605be0fa2d1422a8790fe6b3eecc1aaf33..78bd21d1a6f1c8d388b63bc8b95996a6aa6ef130 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { c || c++23_down } } } */
 /* { dg-options "-fopenmp" } */
 
 extern int a[][10], a2[][10];
index 4e0f44a7317410cf7e7095ce89e47c180ab9dbf4..2576d83397e905c414a543485b8fe4b142352734 100644 (file)
@@ -9,7 +9,7 @@ foo (void)
   s[0]++;
 #pragma omp parallel reduction (+: s[2:2]) allocate(s)
   s[2]++;
-#pragma omp parallel reduction (+: p[:2]) allocate(p)
+#pragma omp parallel reduction (+: p[ :2]) allocate(p)
   p[0]++;
 #pragma omp parallel reduction (+: p[2:2]) allocate(p)
   p[2]++;
@@ -30,7 +30,7 @@ bar (void)
 #pragma omp teams distribute parallel for reduction (+: s[2:2]) allocate(s)
   for (i = 0; i < 64; i++)
     s[2]++;
-#pragma omp teams distribute parallel for reduction (+: p[:2]) allocate(p)
+#pragma omp teams distribute parallel for reduction (+: p[ :2]) allocate(p)
   for (i = 0; i < 64; i++)
     p[0]++;
 #pragma omp teams distribute parallel for reduction (+: p[2:2]) allocate(p)
index 5618a9138ce7dbbb16b231d7d053bce43d565c7e..a1f505a3a11da318b70510a7fa09fa2bbee8b54a 100644 (file)
@@ -17,9 +17,9 @@ main ()
   bar (&s.v.a);
   #pragma omp target map (s.v.a) map (always, to: s.u) map (s.x)
   ;
-  #pragma omp target map (s.s[0]) map (s.v.b[:3])
+  #pragma omp target map (s.s[0]) map (s.v.b[ :3])
   ;
-  #pragma omp target map (s.s[0]) map (s.v.b[:3])
+  #pragma omp target map (s.s[0]) map (s.v.b[ :3])
   baz (s.s);
   return 0;
 }
index e491bcd0ce654e5bbc9a1d1ff1a9f1e6a001ecb0..c0ec21b1b380adcbbb8fc52fac51af22bc847f45 100644 (file)
@@ -14,7 +14,7 @@ int main (int argc, char *argv[])
 {
   int N = 1024;
 #pragma omp declare mapper (mapN:struct S s) map(to:s.ptr, s.size) \
-                                            map(s.ptr[:N])
+                                            map(s.ptr[ :N])
 
   struct S s;
   s.ptr = (int *) malloc (sizeof (int) * N);
index 599031f2d900264e236f3702ade0bdb7a6dc8567..575bde972f5dde9c0a0bcfbe4ecd8ac0f316ecee 100644 (file)
@@ -18,61 +18,61 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp task depend(out: t[2:5])
     ;
-  #pragma omp task depend(inout: k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp task depend(inout: k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp task depend(in: l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp task depend(in: l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp task depend(out: m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp task depend(out: m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp task depend(inout: n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp task depend(inout: n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma omp task depend(in: o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
-  #pragma omp task depend(out: a[:][2:4]) /* { dg-error "array type length expression must be specified" } */
+  #pragma omp task depend(out: a[ : ][2:4]) /* { dg-error "array type length expression must be specified" } */
     ;
-  #pragma omp task depend(inout: b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp task depend(inout: b[-1: ]) /* { dg-error "negative low bound in array section" } */
     ;
-  #pragma omp task depend(inout: c[:-3][1:1]) /* { dg-error "negative length in array section" } */
+  #pragma omp task depend(inout: c[ :-3][1:1]) /* { dg-error "negative length in array section" } */
     ;
-  #pragma omp task depend(in: d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp task depend(in: d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     ;
-  #pragma omp task depend(out: e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp task depend(out: e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     ;
   #pragma omp task depend(out: f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     ;
-  #pragma omp task depend(in: g[:][2:4]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma omp task depend(in: g[ : ][2:4]) /* { dg-error "for array function parameter length expression must be specified" } */
     ;
-  #pragma omp task depend(in: h[2:2][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp task depend(in: h[2:2][-1: ]) /* { dg-error "negative low bound in array section" } */
     ;
-  #pragma omp task depend(inout: h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma omp task depend(inout: h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     ;
-  #pragma omp task depend(out: i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp task depend(out: i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     ;
-  #pragma omp task depend(in: j[3:4][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp task depend(in: j[3:4][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     ;
   #pragma omp task depend(out: j[30:10][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     ;
-  #pragma omp task depend(out: a2[:3][2:4])
+  #pragma omp task depend(out: a2[ :3][2:4])
     ;
-  #pragma omp task depend(inout: b2[0:])
+  #pragma omp task depend(inout: b2[0: ])
     ;
-  #pragma omp task depend(inout: c2[:3][1:1])
+  #pragma omp task depend(inout: c2[ :3][1:1])
     ;
-  #pragma omp task depend(in: d2[9:])
+  #pragma omp task depend(in: d2[9: ])
     ;
-  #pragma omp task depend(out: e2[:10])
+  #pragma omp task depend(out: e2[ :10])
     ;
   #pragma omp task depend(out: f2[1:9])
     ;
-  #pragma omp task depend(in: g2[:2][2:4])
+  #pragma omp task depend(in: g2[ :2][2:4])
     ;
-  #pragma omp task depend(in: h2[2:2][0:])
+  #pragma omp task depend(in: h2[2:2][0: ])
     ;
-  #pragma omp task depend(inout: h2[:1][:3])
+  #pragma omp task depend(inout: h2[ :1][ :3])
     ;
-  #pragma omp task depend(out: i2[:1][9:])
+  #pragma omp task depend(out: i2[ :1][9: ])
     ;
-  #pragma omp task depend(in: j2[3:4][:9])
+  #pragma omp task depend(in: j2[3:4][ :9])
     ;
   #pragma omp task depend(out: j2[30:10][5:4])
     ;
index 99bf8ae1b832e455128df3e7987e6b685004bc6b..b5668474d10fe57f0d895328dc0f0de46fc52a9a 100644 (file)
@@ -6,12 +6,12 @@ void
 foo (int a[10][10][10], int **b)
 {
   int c[10][10][10];
-  #pragma omp task depend(out: a[2:4][3:][:7], b[1:7][2:8])
+  #pragma omp task depend(out: a[2:4][3: ][ :7], b[1:7][2:8])
     bar (a);
   int i = 1, j = 3, k = 2, l = 6;
-  #pragma omp task depend(in: a[++i:++j][++k:][:++l])
+  #pragma omp task depend(in: a[++i:++j][++k: ][ :++l])
     bar (a);
-  #pragma omp task depend(out: a[7:2][:][:], c[5:2][:][:])
+  #pragma omp task depend(out: a[7:2][ : ][ : ], c[5:2][ : ][ : ])
   {
     bar (c);
     bar (a);
index 22fcd8d9c704821e3601402e5851ee95a8fb7628..2cea43ab3c2bfa189717acaa040b06b710a636e8 100644 (file)
@@ -6,16 +6,16 @@ void
 foo (int a[10][10][10], int **b, int x)
 {
   int c[10][10][10];
-  #pragma omp task depend(out: a[2:4][3:0][:7])        /* { dg-error "zero length array section" } */
+  #pragma omp task depend(out: a[2:4][3:0][ :7])       /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp task depend(inout: b[:7][0:0][:0]) /* { dg-error "zero length array section" } */
+  #pragma omp task depend(inout: b[ :7][0:0][ :0]) /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp task depend(in: c[:][:][10:])    /* { dg-error "zero length array section" } */
+  #pragma omp task depend(in: c[ : ][ : ][10: ])       /* { dg-error "zero length array section" } */
     bar (c);
-  #pragma omp task depend(out: a[2:4][3:0][:x])        /* { dg-error "zero length array section" } */
+  #pragma omp task depend(out: a[2:4][3:0][ :x])       /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp task depend(inout: b[:x][0:0][:0]) /* { dg-error "zero length array section" } */
+  #pragma omp task depend(inout: b[ :x][0:0][ :0]) /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp task depend(in: c[:][x-2:x][10:])        /* { dg-error "zero length array section" } */
+  #pragma omp task depend(in: c[ : ][x-2:x][10: ])     /* { dg-error "zero length array section" } */
     bar (c);
 }
index d40b1fa83cde3f25ee6e8402cf1530d67362cbde..0fd771e05fd1dceb2186adaf2c1b29cac621d0a5 100644 (file)
@@ -25,13 +25,13 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma omp task depend (inout: p[2:-3])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp task depend (inout: q[2:-3][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp task depend (inout: q[2:-3][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp task depend (inout: q[2:3][0:-1])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp task depend (inout: r[2:-5])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp task depend (inout: s[2:-5][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp task depend (inout: s[2:-5][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp task depend (inout: s[2:5][0:-4])         /* { dg-error "negative length in array section in" } */
   ;
index 993987f0a31b9033944e672cc72dd651993ca471..3a1b707e105597dd53dc8ead0619b42d071368d6 100644 (file)
@@ -15,11 +15,11 @@ foo (void)
   ;
   #pragma omp task depend(out: d[2])
   ;
-  #pragma omp task depend(in: d[:])
+  #pragma omp task depend(in: d[ : ])
   ;
   #pragma omp task depend(in: d[2:2])
   ;
-  #pragma omp task depend(in: d[:2])
+  #pragma omp task depend(in: d[ :2])
   ;
   #pragma omp task depend(inout: d[1].b->c[2])
   ;
index 4684653a06666323577d2b8286e77faa6d8bf2b2..c365cf64c64b25fe2191e3babf222a6fe67fffe3 100644 (file)
@@ -13,9 +13,9 @@ struct U i;
 void
 foo (void)
 {
-  #pragma omp task depend(in: d[:2].b->c[2])   /* { dg-error "expected" } */
+  #pragma omp task depend(in: d[ :2].b->c[2])  /* { dg-error "expected" } */
   ;
-  #pragma omp task depend(inout: d[1:].b->c[2])        /* { dg-error "expected" } */
+  #pragma omp task depend(inout: d[1: ].b->c[2])       /* { dg-error "expected" } */
   ;
   #pragma omp task depend(out: d[0:1].a)       /* { dg-error "expected" } */
   ;
index 2a4e939d0002e51d8aee3b3fe7a7b897f2323cb5..35eb3b85d183b4c39eed527baed9a65736fa72da 100644 (file)
@@ -64,7 +64,7 @@ void f1 (void)
   f2 ();
 #pragma omp dispatch depend(inout: sp)
   f2 ();
-#pragma omp dispatch depend(inoutset: arr[:2])
+#pragma omp dispatch depend(inoutset: arr[ :2])
   f2 ();
 #pragma omp dispatch depend(out: arr)
   f2 ();
index b9b2ad9176774c2f195b1224a675260917052176..bfc7017bea03a4417b4c288e8958ad52ada1fa1b 100644 (file)
@@ -2,7 +2,7 @@ __attribute__((noipa)) int
 foo (int *a, int *r3)
 {
   int r = 0, r2[2] = { 0, 0 }, i;
-  #pragma omp parallel loop default (none) reduction (+:r, r2[:2], r3[:2]) shared (a) lastprivate (i)
+  #pragma omp parallel loop default (none) reduction (+:r, r2[ :2], r3[ :2]) shared (a) lastprivate (i)
   for (i = 0; i < 1024; i++)
     {
       r += a[i];
index ed88944da7b33089223adb529c0f8b8c5dffe085..f7003d3384b60d1f844b79ff79f4d1648f0e5018 100644 (file)
@@ -27,13 +27,13 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp target map(from: t[2:5]) /* { dg-error "is threadprivate variable" } */
     ;
-  #pragma omp target map(tofrom: k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(tofrom: k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(from: l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(from: l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(to: m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(to: m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(tofrom: n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(tofrom: n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma omp target map(to: o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
@@ -41,72 +41,72 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp target map(alloc: s2) /* { dg-error "'s2' does not have a mappable type in 'map' clause" } */
     ;
-  #pragma omp target map(to: a[:][:]) /* { dg-error "array type length expression must be specified" } */
+  #pragma omp target map(to: a[ : ][ : ]) /* { dg-error "array type length expression must be specified" } */
     bar (&a[0][0]); /* { dg-error "referenced in target region does not have a mappable type" } */
-  #pragma omp target map(tofrom: b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp target map(tofrom: b[-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (b);
-  #pragma omp target map(tofrom: c[:-3][:]) /* { dg-error "negative length in array section" } */
+  #pragma omp target map(tofrom: c[ :-3][ : ]) /* { dg-error "negative length in array section" } */
     bar (&c[0][0]);
-  #pragma omp target map(from: d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp target map(from: d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (d);
-  #pragma omp target map(to: e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp target map(to: e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (e);
   #pragma omp target map(to: f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (f);
-  #pragma omp target map(from: g[:][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma omp target map(from: g[ : ][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
     bar (&g[0][0]);
-  #pragma omp target map(from: h[2:1][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp target map(from: h[2:1][-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (&h[0][0]);
-  #pragma omp target map(tofrom: h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma omp target map(tofrom: h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     bar (&h[0][0]);
-  #pragma omp target map(i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp target map(i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (&i[0][0]);
-  #pragma omp target map(from: j[3:1][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp target map(from: j[3:1][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
   #pragma omp target map(to: j[30:1][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
-  #pragma omp target map(to: a2[:1][2:4])
+  #pragma omp target map(to: a2[ :1][2:4])
     bar (&a2[0][0]);
-  #pragma omp target map(a2[3:5][:])
+  #pragma omp target map(a2[3:5][ : ])
     bar (&a2[0][0]);
-  #pragma omp target map(to: a2[3:5][:10])
+  #pragma omp target map(to: a2[3:5][ :10])
     bar (&a2[0][0]);
-  #pragma omp target map(tofrom: b2[0:])
+  #pragma omp target map(tofrom: b2[0: ])
     bar (b2);
-  #pragma omp target map(tofrom: c2[:3][:])
+  #pragma omp target map(tofrom: c2[ :3][ : ])
     bar (&c2[0][0]);
-  #pragma omp target map(from: d2[9:])
+  #pragma omp target map(from: d2[9: ])
     bar (d2);
-  #pragma omp target map(to: e2[:10])
+  #pragma omp target map(to: e2[ :10])
     bar (e2);
   #pragma omp target map(to: f2[1:9])
     bar (f2);
-  #pragma omp target map(g2[:1][2:4])
+  #pragma omp target map(g2[ :1][2:4])
     bar (&g2[0][0]);
-  #pragma omp target map(from: h2[2:2][0:])
+  #pragma omp target map(from: h2[2:2][0: ])
     bar (&h2[0][0]);
-  #pragma omp target map(tofrom: h2[:1][:3])
+  #pragma omp target map(tofrom: h2[ :1][ :3])
     bar (&h2[0][0]);
-  #pragma omp target map(to: i2[:1][9:])
+  #pragma omp target map(to: i2[ :1][9: ])
     bar (&i2[0][0]);
-  #pragma omp target map(from: j2[3:4][:9])
+  #pragma omp target map(from: j2[3:4][ :9])
     bar (&j2[0][0]);
   #pragma omp target map(to: j2[30:1][5:4])
     bar (&j2[0][0]);
   #pragma omp target map(q[1:2])
     ;
-  #pragma omp target map(tofrom: q[3:5][:10]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(tofrom: q[3:5][ :10]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2])
+  #pragma omp target map(r[3: ][2:1][1:2])
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][0:4])
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][0:4])
     ;
-  #pragma omp target map(r[3:][2:1][1:2][1:][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][1: ][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:3][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ :3][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][1:]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][1: ]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][:3]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][ :3]) /* { dg-error "array section is not contiguous" } */
     ;
 }
index 01fb4be869df7b5460717f1b30922170460a473d..03a3ed74502fe31e6fb7a2e2db65fb12e4abd2f3 100644 (file)
@@ -16,25 +16,25 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma omp target map (tofrom: r[-1:2])
   ;
-  #pragma omp target map (tofrom: s[-1:2][:])
+  #pragma omp target map (tofrom: s[-1:2][ : ])
   ;
   #pragma omp target map (tofrom: s[-1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: a[-1:2])      /* { dg-error "negative low bound in array section in" } */
   ;
-  #pragma omp target map (tofrom: b[-1:2][0:])  /* { dg-error "negative low bound in array section in" } */
+  #pragma omp target map (tofrom: b[-1:2][0: ])         /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: b[1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: p[2:-3])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp target map (tofrom: q[2:-3][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp target map (tofrom: q[2:-3][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: q[2:3][0:-1])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: r[2:-5])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp target map (tofrom: s[2:-5][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp target map (tofrom: s[2:-5][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: s[2:5][0:-4])         /* { dg-error "negative length in array section in" } */
   ;
index 6c486365bf0056579bd4081b7977c3c1da272eea..79b61e4353c3ee8932b8c57c55b00dc79e575b97 100644 (file)
@@ -5,7 +5,7 @@ typedef double Grid[SIZE];
 
 void test (Grid src1)
 {
-  #pragma omp target map(alloc:src1[:])  /* { dg-error "for array function parameter length expression must be specified" }  */
+  #pragma omp target map(alloc:src1[ : ])  /* { dg-error "for array function parameter length expression must be specified" }  */
   {
     src1[0] = 5;
   }
@@ -13,7 +13,7 @@ void test (Grid src1)
 
 void test2 (double src2[])
 {
-  #pragma omp target map(alloc:src2[:])  /* { dg-error "for array function parameter length expression must be specified" }  */
+  #pragma omp target map(alloc:src2[ : ])  /* { dg-error "for array function parameter length expression must be specified" }  */
   {
     src2[0] = 5;
   }
@@ -21,7 +21,7 @@ void test2 (double src2[])
 
 void test3 (double *src3)
 {
-  #pragma omp target map(alloc:src3[:])  /* { dg-error "for pointer type length expression must be specified" }  */
+  #pragma omp target map(alloc:src3[ : ])  /* { dg-error "for pointer type length expression must be specified" }  */
   {
     src3[0] = 5;
   }
index 3f1e9729e4178868f00dfc9be536458716b2c87f..6d79718f0713b783ad48421c33002206cdb9eb09 100644 (file)
@@ -9,12 +9,12 @@ foo (void)
   int always[N];
   int close;
 
-  #pragma omp target map(always[:N]) 
+  #pragma omp target map(always[ :N]) 
   ;
 
-  #pragma omp target map(close, always[:N]) 
+  #pragma omp target map(close, always[ :N]) 
   ;
 
-  #pragma omp target map(always[:N], close) 
+  #pragma omp target map(always[ :N], close) 
   ;
 }
index babd01aa6f76f554449a31468a9eea8d6bc9d3c7..e84aeb6240d44cc868c5a0bf034d8fe9bfd14fbb 100644 (file)
@@ -3,7 +3,7 @@
 void
 foo (int *ptr)
 {
-  #pragma omp target map (ptr, ptr[:4])
+  #pragma omp target map (ptr, ptr[ :4])
   #pragma omp parallel master
   ptr[0] = 1;
 }
@@ -11,7 +11,7 @@ foo (int *ptr)
 void
 bar (int *ptr)
 {
-  #pragma omp target parallel map (ptr[:4], ptr)
+  #pragma omp target parallel map (ptr[ :4], ptr)
   #pragma omp master
   ptr[0] = 1;
 }
index bc6d7ac18de31c43be398472537acde54a80f4c2..f55b7b264b9cf3e8505c03dbd7a447ff8f21bb75 100644 (file)
@@ -23,7 +23,7 @@ int main (void)
   t.s = (S *) malloc (sizeof (S));
   t.s->a = (int *) malloc (sizeof(int) * N);
 
-  #pragma omp target map(from: t.s->a[:N])
+  #pragma omp target map(from: t.s->a[ :N])
   {
     t.s->a[0] = 1;
   }
index 52b5082b4e779aacaaa6657740b84986ef5a2d78..b563d5f0ebfd04275f44992cae31d4b9ff88d59a 100644 (file)
@@ -9,9 +9,9 @@ int main()
   double *qq;
   int i, k, nq;
 
-  #pragma omp metadirective when(user={condition(0)}: target teams distribute parallel for collapse(2) map(qq[:0]) private(i)) \
-                            when(user={condition(0)}: target teams distribute parallel for map(qq[:0]) private(i)) \
-                            when(user={condition(1)}: target teams loop collapse(2) map(qq[:0]) private(i))
+  #pragma omp metadirective when(user={condition(0)}: target teams distribute parallel for collapse(2) map(qq[ :0]) private(i)) \
+                            when(user={condition(0)}: target teams distribute parallel for map(qq[ :0]) private(i)) \
+                            when(user={condition(1)}: target teams loop collapse(2) map(qq[ :0]) private(i))
   for(k=0; k<blksize; k++)
     {
 #pragma omp metadirective when(user={condition(0)}: simd) default()
index dbd621f0dba777f8233b40bea93a2813aa737015..d09e19db4447f53527949ba794db15b0d06dcb3c 100644 (file)
@@ -6,7 +6,7 @@ int
 foo (int *a)
 {
   int i, j = 0;
-  #pragma omp target teams distribute simd linear(i) map(a[:10])
+  #pragma omp target teams distribute simd linear(i) map(a[ :10])
   for (i = 0; i < 10; i++)
     a[i] = j;
   return i;
index a826c5f5a5395edfd43319eaaa3ae1de55f5b4ff..9a4ca41436af7f24a9e75324726d4812a5cb896f 100644 (file)
@@ -5,6 +5,6 @@ int a[] = {};
 
 void foo()
 {
-  #pragma omp task depend(out: a[:])   /* { dg-error "zero length array section in .depend. clause" } */
+  #pragma omp task depend(out: a[ : ]) /* { dg-error "zero length array section in .depend. clause" } */
     {}
 }
index 604fd5986f8bd1cc339a2a97bbdb49d11f0f2716..016005e8b5ed5f1200609bd013b20a5238e1f18e 100644 (file)
@@ -7,7 +7,7 @@ foo (void)
 {
   int i;
   float f[3] = { 0.0f, 0.0f, 0.0f };
-#pragma omp parallel for default(none) reduction(+:f[:3])
+#pragma omp parallel for default(none) reduction(+:f[ :3])
   for (i = 0; i < 1000; i++)
     {
       int j;
index f55d9cf9960017d1b3de9bd44e24d02cb0b9b019..04f920c742bcd27e8390f8bb2db839519598bad1 100644 (file)
@@ -5,5 +5,5 @@ int *v;
 void
 foo (int x)
 {
-  #pragma omp target update to (x, v[:])       /* { dg-error "for pointer type length expression must be specified" } */
+  #pragma omp target update to (x, v[ : ])     /* { dg-error "for pointer type length expression must be specified" } */
 }
index 84cd85da7cf05008c6d1b50aa8478ef3c0964f86..d548b391d82935654618f5ad3b8bf32184ca8f5e 100644 (file)
@@ -4,13 +4,13 @@ void
 foo (void)
 {
   int a[6] = {};
-  #pragma omp target simd reduction(+:a[:3])
+  #pragma omp target simd reduction(+:a[ :3])
   for (int i = 0; i < 6; i++)
     a[0]++;
-  #pragma omp target simd reduction(+:a[:3]) map(always, tofrom: a)
+  #pragma omp target simd reduction(+:a[ :3]) map(always, tofrom: a)
   for (int i = 0; i < 6; i++)
     a[0]++;
-  #pragma omp target simd reduction(+:a[:3]) map(always, tofrom: a[:6])
+  #pragma omp target simd reduction(+:a[ :3]) map(always, tofrom: a[ :6])
   for (int i = 0; i < 6; i++)
     a[0]++;
 }
index 897ed68e1a342f665d8a9c26eb75698eaf918421..4ee1006db7c1e06cb6353156244000810ee51f54 100644 (file)
@@ -10,17 +10,17 @@ foo (int a[10][10][10], int **b, int x)
   int c[10][10][0];
   int d[0];
   char e[12];
-  #pragma omp parallel reduction(+: a[:4][:0][:7])     /* { dg-error "zero length array section" } */
+  #pragma omp parallel reduction(+: a[ :4][ :0][ :7])  /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp parallel reduction(+: b[:7][0:0][:0])    /* { dg-error "zero length array section" } */
+  #pragma omp parallel reduction(+: b[ :7][0:0][ :0])  /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp parallel reduction(+: c[:][:][0:])       /* { dg-error "zero length array section|for unknown bound array type length expression must be specified" } */
+  #pragma omp parallel reduction(+: c[ : ][ : ][0: ])  /* { dg-error "zero length array section|for unknown bound array type length expression must be specified" } */
     bar (a);
-  #pragma omp parallel reduction(+: a[:4][:0][:x])     /* { dg-error "zero length array section" } */
+  #pragma omp parallel reduction(+: a[ :4][ :0][ :x])  /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp parallel reduction(+: b[:x][0:0][:0])    /* { dg-error "zero length array section" } */
+  #pragma omp parallel reduction(+: b[ :x][0:0][ :0])  /* { dg-error "zero length array section" } */
     bar (a);
-  #pragma omp parallel reduction(+: c[:][:x][0:])      /* { dg-error "zero length array section|for unknown bound array type length expression must be specified" } */
+  #pragma omp parallel reduction(+: c[ : ][ :x][0: ])  /* { dg-error "zero length array section|for unknown bound array type length expression must be specified" } */
     bar (a);
   #pragma omp parallel reduction(+: d)                 /* { dg-error "is a zero size array" } */
     bar (a);
@@ -42,11 +42,11 @@ foo (int a[10][10][10], int **b, int x)
     bar (a);
   #pragma omp parallel reduction(+: a[0:2.5])          /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     bar (a);
-  #pragma omp parallel reduction(+: f[:][0:2])         /* { dg-error "for unknown bound array type length expression must be specified" } */
+  #pragma omp parallel reduction(+: f[ : ][0:2])               /* { dg-error "for unknown bound array type length expression must be specified" } */
     bar (a);
-  #pragma omp parallel reduction(+: a[:][0:10])                /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma omp parallel reduction(+: a[ : ][0:10])              /* { dg-error "for array function parameter length expression must be specified" } */
     bar (a);
-  #pragma omp parallel reduction(+: a[:10][0:12])      /* { dg-error "above array section size" } */
+  #pragma omp parallel reduction(+: a[ :10][0:12])     /* { dg-error "above array section size" } */
     bar (a);
   #pragma omp parallel reduction(+: b[0:10][0:10])     /* { dg-error "array section is not contiguous" } */
     bar (a);
index 95b46cbb71b8bd1ca6ddf4716724b9fcd2c06525..ecc0bd0046155633a8248a30ff761eaadadebe1d 100644 (file)
@@ -25,11 +25,11 @@ f2 (int *c, int *d, int *e, int *f)
       #pragma omp scan inclusive (b)                           /* { dg-error "" } */
       d[i] = b;
     }
-  #pragma omp for reduction (inscan, +: e[:2])                 /* { dg-error "'inscan' 'reduction' clause with array section" } */
+  #pragma omp for reduction (inscan, +: e[ :2])                        /* { dg-error "'inscan' 'reduction' clause with array section" } */
   for (i = 0; i < 64; ++i)
     {
       { e[0] += c[i]; e[1] += c[i]; }
-      #pragma omp scan inclusive (a, e[:2])                    /* { dg-error "" } */
+      #pragma omp scan inclusive (a, e[ :2])                   /* { dg-error "" } */
       { d[i] = e[0]; f[i] = e[1]; }
     }
   #pragma omp for reduction (inscan, +: a) ordered             /* { dg-error "'ordered' clause specified together with 'inscan' 'reduction' clause" } */
@@ -91,7 +91,7 @@ f3 (int *c, int *d)
   }
   #pragma omp scope reduction (inscan, +: a)   /* { dg-error "'inscan' 'reduction' clause on 'scope' construct" } */
   ;
-  #pragma omp target parallel for reduction (inscan, +: a) map (c[:64], d[:64])        /* { dg-error "'inscan' 'reduction' clause on construct other than 'for', 'simd', 'for simd', 'parallel for', 'parallel for simd'" } */
+  #pragma omp target parallel for reduction (inscan, +: a) map (c[ :64], d[ :64])      /* { dg-error "'inscan' 'reduction' clause on construct other than 'for', 'simd', 'for simd', 'parallel for', 'parallel for simd'" } */
   for (i = 0; i < 64; i++)
     {
       d[i] = a;
index 7aa111a92a46c9046942906ecdfd83a5e3fc460b..3b8e9800b8db9d57ad262c8b23ef3405bd7d81b4 100644 (file)
@@ -6,7 +6,7 @@ foo (void)
   int a[4] = { 1, 2, 3, 4 };
   int *p = &a[0];
   int x = 5;
-  #pragma omp target data map(to:p[:4])
+  #pragma omp target data map(to:p[ :4])
   #pragma omp target data use_device_ptr(p)
   #pragma omp target is_device_ptr(p)
   {
index 4dc51886972aacbc644b2c0caf82d1bd19226744..57161bcf69a76018794df7e0d88c8b982a257fa8 100644 (file)
@@ -16,9 +16,9 @@ struct foo
 
 void func (struct foo *f, int n, int m)
 {
-  #pragma omp target enter data map (to: f->vectors[m][:n])
-  #pragma omp target enter data map (to: f->bars[n].vectors[:m])
-  #pragma omp target enter data map (to: f->bars[n].vectors[:f->bars[n].num_vectors])
+  #pragma omp target enter data map (to: f->vectors[m][ :n])
+  #pragma omp target enter data map (to: f->bars[n].vectors[ :m])
+  #pragma omp target enter data map (to: f->bars[n].vectors[ :f->bars[n].num_vectors])
 }
 
 /* { dg-final { scan-tree-dump-times {map\(struct:\*f \[len: 1\]\) map\(alloc:[a-z0-9\._]+->vectors \[len: 0\]\) map\(to:\*_[0-9]+ \[len: _[0-9]+\]\) map\(attach:[a-z0-9\._]+->vectors \[bias: [^\]]+\]\) map\(attach:\*_[0-9]+ \[bias: [^\]]+\]\)} 1 "gimple" } } */
index ebf55eea70b6309ebd029cc6cdcbae00f0a4521b..c9520a347199f334eb25e587298285f1920736c1 100644 (file)
@@ -26,20 +26,20 @@ foo ()
   ;
 
   int z[3] = { 2, 5, 7 };
-  #pragma omp target data map(z[:3]) use_device_addr(z)
-    #pragma omp target has_device_addr(z[1:])
+  #pragma omp target data map(z[ :3]) use_device_addr(z)
+    #pragma omp target has_device_addr(z[1: ])
     ;
 
-  #pragma omp target data map(z[:3]) use_device_addr(z)
+  #pragma omp target data map(z[ :3]) use_device_addr(z)
     #pragma omp target has_device_addr(z[1])
     ;
 
-  #pragma omp target data map(z[:3]) use_device_addr(z)
+  #pragma omp target data map(z[ :3]) use_device_addr(z)
     #pragma omp target has_device_addr(z[1:2])
     ;
 
-  #pragma omp target data map(z[:3]) use_device_addr(z)
-    #pragma omp target has_device_addr(z[:2])
+  #pragma omp target data map(z[ :3]) use_device_addr(z)
+    #pragma omp target has_device_addr(z[ :2])
     ;
 
   int w[3][4];
@@ -48,7 +48,7 @@ foo ()
     ;
 
   #pragma omp target data map(w) use_device_addr(w)
-    #pragma omp target has_device_addr(w[:1][2:])
+    #pragma omp target has_device_addr(w[ :1][2: ])
     ;
 
   int u[0];
index a336c2d9f551b576228c91d9e88cf84cd20f6857..cb8c9a741d0406cc95ab2f09037b132e5bf4ea02 100644 (file)
@@ -22,29 +22,29 @@ main (void)
   for (int i = 0; i < N; i++)
     a.ptr[i] = 0;
 
-  #pragma omp target enter data map(to: a.ptr, a.ptr[:N])
+  #pragma omp target enter data map(to: a.ptr, a.ptr[ :N])
 
   #pragma omp target
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 1)
       abort ();
 
-  #pragma omp target map(a.ptr[:N])
+  #pragma omp target map(a.ptr[ :N])
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 2)
       abort ();
 
-  #pragma omp target exit data map(from:a.ptr, a.ptr[:N])
+  #pragma omp target exit data map(from:a.ptr, a.ptr[ :N])
 
   return 0;
 }
index 7d6c8dc6255c14615e2f7f0b1e0789b2c79442ce..8071907b30b164065574c3de1fa5414cf057d4f7 100644 (file)
@@ -6,13 +6,13 @@
 
 void f (int **x, int **y)
 {
-  #pragma omp target map(iterator(i=0:DIM1), to: x[i][:DIM2])
+  #pragma omp target map(iterator(i=0:DIM1), to: x[i][ :DIM2])
     ;
 
-  #pragma omp target map(iterator(i=0:DIM1), to: x[i][:DIM2], y[i][:DIM2])
+  #pragma omp target map(iterator(i=0:DIM1), to: x[i][ :DIM2], y[i][ :DIM2])
     ;
 
-  #pragma omp target map(iterator(i=0:DIM1), to: x[i][:DIM2] + 2) /* { dg-message "unsupported map expression" } */
+  #pragma omp target map(iterator(i=0:DIM1), to: x[i][ :DIM2] + 2) /* { dg-message "unsupported map expression" } */
     ;
 
   #pragma omp target map(iterator(i=0:DIM1), iterator(j=0:DIM2), to: x[i][j]) /* { dg-error "too many 'iterator' modifiers" } */
index 62df42ffde10fba8d9f88190cd787886ba14928e..c31336538deb6592589a720f8e27199ac301a25f 100644 (file)
@@ -9,9 +9,9 @@ void f (int ***x, float ***y, double **z)
 {
   #pragma omp target \
       map(to: x, y) \
-      map(iterator(i=0:DIM1, j=0:DIM2), to: x[i][j][:DIM3], y[i][j][:DIM3]) \
+      map(iterator(i=0:DIM1, j=0:DIM2), to: x[i][j][ :DIM3], y[i][j][ :DIM3]) \
       map(from: z) \
-      map(iterator(i=0:DIM1), from: z[i][:DIM2])
+      map(iterator(i=0:DIM1), from: z[i][ :DIM2])
     ;
 }
 
index 53b22f07e1d7aa49ae296b1cd26243aebe85bab4..d69fe951fed7e1d7d2bd9f219e8f2952735cecfd 100644 (file)
@@ -6,11 +6,11 @@
 
 void f (int **x, float **y)
 {
-  #pragma omp target update to (iterator(i=0:DIM1): x[i][:DIM2])
+  #pragma omp target update to (iterator(i=0:DIM1): x[i][ :DIM2])
 
-  #pragma omp target update to (iterator(i=0:DIM1): x[i][:DIM2], y[i][:DIM2])
+  #pragma omp target update to (iterator(i=0:DIM1): x[i][ :DIM2], y[i][ :DIM2])
 
-  #pragma omp target update to (iterator(i=0:DIM1), present: x[i][:DIM2])
+  #pragma omp target update to (iterator(i=0:DIM1), present: x[i][ :DIM2])
 
   #pragma omp target update to (iterator(i=0:DIM1), iterator(j=0:DIM2): x[i][j]) /* { dg-error "too many 'iterator' modifiers" } */
   /* { dg-error "'#pragma omp target update' must contain at least one 'from' or 'to' clauses" "" { target *-*-* } .-1 } */
index ef55216876f65f4e60ef4cca937e38747274a73d..0057cf76d87d8f04577a2e4641e5fa6b7b03103a 100644 (file)
@@ -7,8 +7,8 @@
 
 void f (int ***x, float ***y, double **z)
 {
-  #pragma omp target update to (iterator(i=0:DIM1, j=0:DIM2): x[i][j][:DIM3], y[i][j][:DIM3])
-  #pragma omp target update from (iterator(i=0:DIM1): z[i][:DIM2])
+  #pragma omp target update to (iterator(i=0:DIM1, j=0:DIM2): x[i][j][ :DIM3], y[i][j][ :DIM3])
+  #pragma omp target update from (iterator(i=0:DIM1): z[i][ :DIM2])
 }
 
 /* { dg-final { scan-tree-dump-times "if \\(i <= 9\\) goto <D\.\[0-9\]+>; else goto <D\.\[0-9\]+>;" 2 "gimple" } } */
index ceafb38d2679de01e9717b5b85802d92ec833a19..8fa7aa8daa4de8b7ed72289f2830415152aa1ac0 100644 (file)
@@ -32,13 +32,13 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc cache(t[2:5]) /* { dg-error "is threadprivate variable" } */
     ;
-  #pragma acc cache(k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc cache(k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc cache(l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc cache(l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc cache(m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc cache(m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc cache(n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc cache(n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma acc cache(o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
@@ -46,73 +46,73 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc cache(s2) /* { dg-error "expected '\\\['" } */
     ;
-  #pragma acc cache(a[:][:]) /* { dg-error "array type length expression must be specified" } */
+  #pragma acc cache(a[ : ][ : ]) /* { dg-error "array type length expression must be specified" } */
     bar (&a[0][0]);
-  #pragma acc cache(b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc cache(b[-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (b);
-  #pragma acc cache(c[:-3][:]) /* { dg-error "negative length in array section" } */
+  #pragma acc cache(c[ :-3][ : ]) /* { dg-error "negative length in array section" } */
     bar (&c[0][0]);
-  #pragma acc cache(d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc cache(d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (d);
-  #pragma acc cache(e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc cache(e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (e);
   #pragma acc cache(f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (f);
-  #pragma acc cache(g[:][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma acc cache(g[ : ][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
     bar (&g[0][0]);
-  #pragma acc cache(h[2:1][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc cache(h[2:1][-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (&h[0][0]);
-  #pragma acc cache(h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma acc cache(h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     bar (&h[0][0]);
-  #pragma acc cache(i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc cache(i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (&i[0][0]);
-  #pragma acc cache(j[3:1][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc cache(j[3:1][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
   #pragma acc cache(j[30:1][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
-  #pragma acc cache(a2[:1][2:4])
+  #pragma acc cache(a2[ :1][2:4])
     bar (&a2[0][0]);
-  #pragma acc cache(a2[3:5][:])
+  #pragma acc cache(a2[3:5][ : ])
     bar (&a2[0][0]);
-  #pragma acc cache(a2[3:5][:10])
+  #pragma acc cache(a2[3:5][ :10])
     bar (&a2[0][0]);
-  #pragma acc cache(b2[0:])
+  #pragma acc cache(b2[0: ])
     bar (b2);
-  #pragma acc cache(c2[:3][:])
+  #pragma acc cache(c2[ :3][ : ])
     bar (&c2[0][0]);
-  #pragma acc cache(d2[9:])
+  #pragma acc cache(d2[9: ])
     bar (d2);
-  #pragma acc cache(e2[:10])
+  #pragma acc cache(e2[ :10])
     bar (e2);
   #pragma acc cache(f2[1:9])
     bar (f2);
-  #pragma acc cache(g2[:1][2:4])
+  #pragma acc cache(g2[ :1][2:4])
     bar (&g2[0][0]);
-  #pragma acc cache(h2[2:2][0:])
+  #pragma acc cache(h2[2:2][0: ])
     bar (&h2[0][0]);
-  #pragma acc cache(h2[:1][:3])
+  #pragma acc cache(h2[ :1][ :3])
     bar (&h2[0][0]);
-  #pragma acc cache(i2[:1][9:])
+  #pragma acc cache(i2[ :1][9: ])
     bar (&i2[0][0]);
-  #pragma acc cache(j2[3:4][:9])
+  #pragma acc cache(j2[3:4][ :9])
     bar (&j2[0][0]);
   #pragma acc cache(j2[30:1][5:4])
     bar (&j2[0][0]);
   #pragma acc cache(q[1:2])
     ;
-  #pragma acc cache(q[3:5][:10]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc cache(q[3:5][ :10]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc cache(r[3:][2:1][1:2])
+  #pragma acc cache(r[3: ][2:1][1:2])
     ;
-  #pragma acc cache(r[3:][2:1][1:2][:][0:4])
+  #pragma acc cache(r[3: ][2:1][1:2][ : ][0:4])
     ;
-  #pragma acc cache(r[3:][2:1][1:2][1:][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc cache(r[3: ][2:1][1:2][1: ][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc cache(r[3:][2:1][1:2][:3][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc cache(r[3: ][2:1][1:2][ :3][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc cache(r[3:][2:1][1:2][:][1:]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc cache(r[3: ][2:1][1:2][ : ][1: ]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc cache(r[3:][2:1][1:2][:][:3]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc cache(r[3: ][2:1][1:2][ : ][ :3]) /* { dg-error "array section is not contiguous" } */
     ;
 }
 
index 5561e176a56cb2f8d84dbd3ed118876b95ed958c..8809ab0bf3a18e3d1bb04b62e5c81416dde79534 100644 (file)
@@ -20,25 +20,25 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma acc cache (r[-1:2])
   ;
-  #pragma acc cache (s[-1:2][:])
+  #pragma acc cache (s[-1:2][ : ])
   ;
   #pragma acc cache (s[-1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (a[-1:2])   /* { dg-error "negative low bound in array section in" } */
   ;
-  #pragma acc cache (b[-1:2][0:])       /* { dg-error "negative low bound in array section in" } */
+  #pragma acc cache (b[-1:2][0: ])      /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (b[1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma acc cache (p[2:-3])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc cache (q[2:-3][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc cache (q[2:-3][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (q[2:3][0:-1])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (r[2:-5])   /* { dg-error "negative length in array section in" } */
   ;
-  #pragma acc cache (s[2:-5][:])        /* { dg-error "negative length in array section in" } */
+  #pragma acc cache (s[2:-5][ : ])      /* { dg-error "negative length in array section in" } */
   ;
   #pragma acc cache (s[2:5][0:-4])      /* { dg-error "negative length in array section in" } */
   ;
index 07ef6aed788ee8ada6c91c34a936589a919098b1..ead71855ba2d3aa3da055262cc7fc905b6103ea9 100644 (file)
@@ -31,13 +31,13 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc parallel copyout(t[2:5]) /* { dg-error "is threadprivate variable" } */
     ;
-  #pragma acc parallel copy(k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copy(k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copyout(l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copyout(l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copyin(m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copyin(m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma acc parallel copy(n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma acc parallel copy(n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma acc parallel copyin(o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
@@ -45,73 +45,73 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma acc parallel create(s2) /* { dg-error "'s2' does not have a mappable type in 'map' clause" } */
     ;
-  #pragma acc parallel copyin(a[:][:]) /* { dg-error "array type length expression must be specified" } */
+  #pragma acc parallel copyin(a[ : ][ : ]) /* { dg-error "array type length expression must be specified" } */
     bar (&a[0][0]); /* { dg-error "referenced in target region does not have a mappable type" "PR97996" { xfail *-*-* } } */
-  #pragma acc parallel copy(b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc parallel copy(b[-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (b);
-  #pragma acc parallel copy(c[:-3][:]) /* { dg-error "negative length in array section" } */
+  #pragma acc parallel copy(c[ :-3][ : ]) /* { dg-error "negative length in array section" } */
     bar (&c[0][0]);
-  #pragma acc parallel copyout(d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyout(d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (d);
-  #pragma acc parallel copyin(e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyin(e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (e);
   #pragma acc parallel copyin(f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (f);
-  #pragma acc parallel copyout(g[:][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma acc parallel copyout(g[ : ][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
     bar (&g[0][0]);
-  #pragma acc parallel copyout(h[2:1][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma acc parallel copyout(h[2:1][-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (&h[0][0]);
-  #pragma acc parallel copy(h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma acc parallel copy(h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     bar (&h[0][0]);
-  #pragma acc parallel copy(i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma acc parallel copy(i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (&i[0][0]);
-  #pragma acc parallel copyout(j[3:1][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma acc parallel copyout(j[3:1][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
   #pragma acc parallel copyin(j[30:1][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
-  #pragma acc parallel copyin(a2[:1][2:4])
+  #pragma acc parallel copyin(a2[ :1][2:4])
     bar (&a2[0][0]);
-  #pragma acc parallel copy(a2[3:5][:])
+  #pragma acc parallel copy(a2[3:5][ : ])
     bar (&a2[0][0]);
-  #pragma acc parallel copyin(a2[3:5][:10])
+  #pragma acc parallel copyin(a2[3:5][ :10])
     bar (&a2[0][0]);
-  #pragma acc parallel copy(b2[0:])
+  #pragma acc parallel copy(b2[0: ])
     bar (b2);
-  #pragma acc parallel copy(c2[:3][:])
+  #pragma acc parallel copy(c2[ :3][ : ])
     bar (&c2[0][0]);
-  #pragma acc parallel copyout(d2[9:])
+  #pragma acc parallel copyout(d2[9: ])
     bar (d2);
-  #pragma acc parallel copyin(e2[:10])
+  #pragma acc parallel copyin(e2[ :10])
     bar (e2);
   #pragma acc parallel copyin(f2[1:9])
     bar (f2);
-  #pragma acc parallel copy(g2[:1][2:4])
+  #pragma acc parallel copy(g2[ :1][2:4])
     bar (&g2[0][0]);
-  #pragma acc parallel copyout(h2[2:2][0:])
+  #pragma acc parallel copyout(h2[2:2][0: ])
     bar (&h2[0][0]);
-  #pragma acc parallel copy(h2[:1][:3])
+  #pragma acc parallel copy(h2[ :1][ :3])
     bar (&h2[0][0]);
-  #pragma acc parallel copyin(i2[:1][9:])
+  #pragma acc parallel copyin(i2[ :1][9: ])
     bar (&i2[0][0]);
-  #pragma acc parallel copyout(j2[3:4][:9])
+  #pragma acc parallel copyout(j2[3:4][ :9])
     bar (&j2[0][0]);
   #pragma acc parallel copyin(j2[30:1][5:4])
     bar (&j2[0][0]);
   #pragma acc parallel copy(q[1:2])
     ;
-  #pragma acc parallel copy(q[3:5][:10]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(q[3:5][ :10]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2])
+  #pragma acc parallel copy(r[3: ][2:1][1:2])
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][0:4])
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][0:4])
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][1:][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][1: ][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:3][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ :3][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][1:]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][1: ]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma acc parallel copy(r[3:][2:1][1:2][:][:3]) /* { dg-error "array section is not contiguous" } */
+  #pragma acc parallel copy(r[3: ][2:1][1:2][ : ][ :3]) /* { dg-error "array section is not contiguous" } */
     ;
 }
 
index 57d1823aede260002e4fe6db24eb23c6c6a07415..f167d98dd49072ec90b96d53be38144a705b8727 100644 (file)
@@ -6,6 +6,10 @@
 
 /* See also corresponding OpenMP variant: '../gomp/map-2.C'.  */
 
+/* Array sections without spaces between [ and : or : and ] are incompatible
+   with C++26.  */
+/* { dg-skip-if "array sections vs. C++26" { c++26 } } */
+
 template <int N>
 void
 foo (int *p, int (*q)[10], int r[10], int s[10][10])
index 9d460f286b45a2e9fbb3e3c69ce1842b638175dd..99148be1a2bc3fae0b7bf760827cedce8f5176c5 100644 (file)
@@ -30,17 +30,17 @@ t1 ()
 #pragma acc exit data detach(ra)
     }
 
-#pragma acc enter data attach(rz[:5]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(rz[ :5]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(rz[:5]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(rz[ :5]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc enter data attach(rz[1:]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(rz[1: ]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(rz[1:]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(rz[1: ]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc enter data attach(rz[:]) /* { dg-error "expected single pointer in .attach. clause" } */
+#pragma acc enter data attach(rz[ : ]) /* { dg-error "expected single pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
-#pragma acc exit data detach(rz[:]) /* { dg-error "expected single pointer in .detach. clause" } */
+#pragma acc exit data detach(rz[ : ]) /* { dg-error "expected single pointer in .detach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
 #pragma acc enter data attach(rz[3]) /* { dg-error "expected pointer in .attach. clause" } */
 /* { dg-error "has no data movement clause" "" { target *-*-* } .-1 } */
index e778314f07e750d9b28bd34a65662e83e7a64afc..0303b55fa256fc3e73dc17547b4ae450015df38e 100644 (file)
@@ -1,3 +1,7 @@
+// Array sections without spaces between [ and : or : and ] are incompatible
+// with C++26.
+// { dg-skip-if "array sections vs. C++26" { c++26 } }
+
 template <typename T>
 void
 foo (T &x, T (&y)[4], T *&z, int &u, int (&v)[4], int *&w)
index e2be9791e817fab1d4502fa956351fe53fe55eac..7bf00c0af07e47037a5e63b32667c09bc14887a2 100644 (file)
@@ -18,10 +18,10 @@ int C::foo()
 #pragma omp target map(arr1[::x: ::y])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[SAVE_EXPR <x>\] \[len: \(sizetype\) y \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: \((?:long )?int\) &arr1\[SAVE_EXPR <x>\] - \((?:long )?int\) &arr1\]\)} "original" } }
   { }
-#pragma omp target map(arr1[::x:])
+#pragma omp target map(arr1[::x: ])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[SAVE_EXPR <x>\] \[len: \(40 - \(sizetype\) SAVE_EXPR <x>\) \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: \((?:long )?int\) &arr1\[SAVE_EXPR <x>\] - \((?:long )?int\) &arr1\]\)} "original" } }
   { }
-#pragma omp target map(arr1[: ::y])
+#pragma omp target map(arr1[ : ::y])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[0\] \[len: \(sizetype\) y \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: 0\]\)} "original" } }
   { }
   return ::x + ::y;
@@ -42,10 +42,10 @@ void Ct<T>::foo()
 #pragma omp target map(arr1[::x: ::y])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[SAVE_EXPR <x>\] \[len: \(sizetype\) y \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: \((?:long )?int\) &arr1\[SAVE_EXPR <x>\] - \((?:long )?int\) &arr1\]\)} "original" } }
   { }
-#pragma omp target map(arr1[::x:])
+#pragma omp target map(arr1[::x: ])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[SAVE_EXPR <x>\] \[len: \(40 - \(sizetype\) SAVE_EXPR <x>\) \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: \((?:long )?int\) &arr1\[SAVE_EXPR <x>\] - \((?:long )?int\) &arr1\]\)} "original" } }
   { }
-#pragma omp target map(arr1[: ::y])
+#pragma omp target map(arr1[ : ::y])
 // { dg-final { scan-tree-dump {map\(tofrom:arr1\[0\] \[len: \(sizetype\) y \* [0-9]+\]\) map\(firstprivate:arr1 \[pointer assign, bias: 0\]\)} "original" } }
   { }
 }
index 286e72e9f64cdb7b3d7414b7dbf2a3fc9fc02bae..78646ced2e1ebbe0a7585d5f7275fd482d746678 100644 (file)
@@ -4,7 +4,7 @@ template<int C, int D>
 void foo()
 {
   int arr1[40];
-#pragma omp target map(arr1[4,C:])
+#pragma omp target map(arr1[4,C: ])
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
@@ -12,7 +12,7 @@ void foo()
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
-#pragma omp target map(arr1[:8,C,10])
+#pragma omp target map(arr1[ :8,C,10])
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
@@ -21,7 +21,7 @@ void foo()
 int main()
 {
   int arr1[40];
-#pragma omp target map(arr1[4,5:])
+#pragma omp target map(arr1[4,5: ])
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
@@ -29,7 +29,7 @@ int main()
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
-#pragma omp target map(arr1[:8,9,10])
+#pragma omp target map(arr1[ :8,9,10])
 // { dg-warning "top-level comma expression in array subscript is deprecated" "" { target c++20_only } .-1 }
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target c++23 } .-2 }
   { }
index dea3b4428f075798363bb6176c9a255464e599f2..2756c6509f6de4fde87a866a9a3081fe241e21fe 100644 (file)
@@ -5,13 +5,13 @@ template<int C, int D>
 void foo()
 {
   int arr1[40];
-#pragma omp target map(arr1[4,C:])
+#pragma omp target map(arr1[4,C: ])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
 #pragma omp target map(arr1[4,5:C,7])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
-#pragma omp target map(arr1[:8,C,10])
+#pragma omp target map(arr1[ :8,C,10])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
 }
@@ -19,13 +19,13 @@ void foo()
 int main()
 {
   int arr1[40];
-#pragma omp target map(arr1[4,5:])
+#pragma omp target map(arr1[4,5: ])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
 #pragma omp target map(arr1[4,5:6,7])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
-#pragma omp target map(arr1[:8,9,10])
+#pragma omp target map(arr1[ :8,9,10])
 // { dg-error "cannot use multidimensional subscript in OpenMP array section" "" { target *-*-* } .-1 }
   { }
 
index bba7772a3c90701cc86ccacae32488dd29b1f1bb..13b9d4f8729f03b08a43f9176a70e3df49d3de67 100644 (file)
@@ -10,7 +10,7 @@ void foo()
 #pragma omp target map(arr1[arr2[4:5]:arr2[6:7]])
 // { dg-error {low bound 'arr2\[4:5\]' of array section does not have integral type} "" { target *-*-* } .-1 }
   { }
-#pragma omp target map(arr1[arr2[:1]:arr2[6:1]])
+#pragma omp target map(arr1[arr2[ :1]:arr2[6:1]])
 // { dg-error {low bound 'arr2\[:1\]' of array section does not have integral type} "" { target *-*-* } .-1 }
   { }
 #pragma omp target map(arr1[x:arr2[6:1]])
@@ -25,7 +25,7 @@ int main()
 #pragma omp target map(arr1[arr2[4:5]:arr2[6:7]])
 // { dg-error {low bound 'arr2\[4:5\]' of array section does not have integral type} "" { target *-*-* } .-1 }
   { }
-#pragma omp target map(arr1[arr2[:1]:arr2[6:1]])
+#pragma omp target map(arr1[arr2[ :1]:arr2[6:1]])
 // { dg-error {low bound 'arr2\[:1\]' of array section does not have integral type} "" { target *-*-* } .-1 }
   { }
 #pragma omp target map(arr1[x:arr2[6:1]])
index 3177d20adbc28f90d6c25028a5fa8f8b806cfd19..2523d02b4a6f3ba2cab63b7e46c92dade5c9a7ca 100644 (file)
@@ -10,8 +10,8 @@ struct S {
 
 #define N 64
 
-#pragma omp declare mapper (S w) map(w.size, w.ptr, w.ptr[:w.size])
-#pragma omp declare mapper (foo:S w) map(to:w.size, w.ptr) map(w.ptr[:w.size])
+#pragma omp declare mapper (S w) map(w.size, w.ptr, w.ptr[ :w.size])
+#pragma omp declare mapper (foo:S w) map(to:w.size, w.ptr) map(w.ptr[ :w.size])
 
 int main (int argc, char *argv[])
 {
@@ -19,7 +19,7 @@ int main (int argc, char *argv[])
   s.ptr = new int[N];
   s.size = N;
 
-#pragma omp declare mapper (bar:S w) map(w.size, w.ptr, w.ptr[:w.size])
+#pragma omp declare mapper (bar:S w) map(w.size, w.ptr, w.ptr[ :w.size])
 
 #pragma omp target
   {
index 7df72c76e2af4cab0f772ce8b9787a8d60bc15ad..379be29001822bc75587d3108dc8ffe3b4361de2 100644 (file)
@@ -13,7 +13,7 @@ struct Z {
 
 int main (int argc, char *argv[])
 {
-#pragma omp declare mapper (S v) map(v.size, v.ptr[:v.size]) // { dg-note "'#pragma omp declare mapper \\(S\\)' previously declared here" }
+#pragma omp declare mapper (S v) map(v.size, v.ptr[ :v.size]) // { dg-note "'#pragma omp declare mapper \\(S\\)' previously declared here" }
 
   /* This one's a duplicate.  */
 #pragma omp declare mapper (default: S v) map (to: v.size) map (v) // { dg-error "redeclaration of '#pragma omp declare mapper \\(S\\)'" }
index 81ae27f3ce2769fa2768e5a554ebc2380be792c0..b432b21a3681778ae66f310f568bb12e72b39cb8 100644 (file)
@@ -17,53 +17,53 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
 {
   #pragma omp task depend(out: t[2:5])
     ;
-  #pragma omp task depend(inout: k[0.5:]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(inout: k[0.5: ]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(in: l[:7.5f]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(in: l[ :7.5f]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(out: m[p:]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(out: m[p: ]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(inout: n[:p]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(inout: n[ :p]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
     ;
   #pragma omp task depend(in: o[2:5]) // { dg-error "does not have pointer or array type" }
     ;
-  #pragma omp task depend(out: a[:][2:4]) // { dg-error "array type length expression must be specified" }
+  #pragma omp task depend(out: a[ : ][2:4]) // { dg-error "array type length expression must be specified" }
     ;
-  #pragma omp task depend(in: d[11:]) // { dg-error "low bound \[^\n\r]* above array section size" }
+  #pragma omp task depend(in: d[11: ]) // { dg-error "low bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(out: e[:11]) // { dg-error "length \[^\n\r]* above array section size" }
+  #pragma omp task depend(out: e[ :11]) // { dg-error "length \[^\n\r]* above array section size" }
     ;
   #pragma omp task depend(out: f[1:10]) // { dg-error "high bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(in: g[:][2:4]) // { dg-error "for array function parameter length expression must be specified" }
+  #pragma omp task depend(in: g[ : ][2:4]) // { dg-error "for array function parameter length expression must be specified" }
     ;
-  #pragma omp task depend(out: i[:1][11:]) // { dg-error "low bound \[^\n\r]* above array section size" }
+  #pragma omp task depend(out: i[ :1][11: ]) // { dg-error "low bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(in: j[3:4][:10]) // { dg-error "length \[^\n\r]* above array section size" }
+  #pragma omp task depend(in: j[3:4][ :10]) // { dg-error "length \[^\n\r]* above array section size" }
     ;
   #pragma omp task depend(out: j[30:10][5:5]) // { dg-error "high bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(out: a2[:3][2:4])
+  #pragma omp task depend(out: a2[ :3][2:4])
     ;
-  #pragma omp task depend(inout: b2[0:])
+  #pragma omp task depend(inout: b2[0: ])
     ;
-  #pragma omp task depend(inout: c2[:3][1:1])
+  #pragma omp task depend(inout: c2[ :3][1:1])
     ;
-  #pragma omp task depend(in: d2[9:])
+  #pragma omp task depend(in: d2[9: ])
     ;
-  #pragma omp task depend(out: e2[:10])
+  #pragma omp task depend(out: e2[ :10])
     ;
   #pragma omp task depend(out: f2[1:9])
     ;
-  #pragma omp task depend(in: g2[:2][2:4])
+  #pragma omp task depend(in: g2[ :2][2:4])
     ;
-  #pragma omp task depend(in: h2[2:2][0:])
+  #pragma omp task depend(in: h2[2:2][0: ])
     ;
-  #pragma omp task depend(inout: h2[:1][:3])
+  #pragma omp task depend(inout: h2[ :1][ :3])
     ;
-  #pragma omp task depend(out: i2[:1][9:])
+  #pragma omp task depend(out: i2[ :1][9: ])
     ;
-  #pragma omp task depend(in: j2[3:4][:9])
+  #pragma omp task depend(in: j2[3:4][ :9])
     ;
   #pragma omp task depend(out: j2[30:10][5:4])
     ;
index f0f9f60056bed7c4e5b483b565638678197ea9ee..ecc2e0c17838d1d5db33006db809bc32d9c8e640 100644 (file)
@@ -19,61 +19,61 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp task depend(out: t[2:5])
     ;
-  #pragma omp task depend(inout: k[0.5:]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(inout: k[0.5: ]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(in: l[:7.5f]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(in: l[ :7.5f]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(out: m[p:]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(out: m[p: ]) // { dg-error "low bound \[^\n\r]* of array section does not have integral type" }
     ;
-  #pragma omp task depend(inout: n[:p]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
+  #pragma omp task depend(inout: n[ :p]) // { dg-error "length \[^\n\r]* of array section does not have integral type" }
     ;
   #pragma omp task depend(in: o[2:5]) // { dg-error "does not have pointer or array type" }
     ;
-  #pragma omp task depend(out: a[:][2:4]) // { dg-error "array type length expression must be specified" }
+  #pragma omp task depend(out: a[ : ][2:4]) // { dg-error "array type length expression must be specified" }
     ;
-  #pragma omp task depend(inout: b[-1:]) // { dg-error "negative low bound in array section" }
+  #pragma omp task depend(inout: b[-1: ]) // { dg-error "negative low bound in array section" }
     ;
-  #pragma omp task depend(inout: c[:-3][1:1]) // { dg-error "negative length in array section" }
+  #pragma omp task depend(inout: c[ :-3][1:1]) // { dg-error "negative length in array section" }
     ;
-  #pragma omp task depend(in: d[11:]) // { dg-error "low bound \[^\n\r]* above array section size" }
+  #pragma omp task depend(in: d[11: ]) // { dg-error "low bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(out: e[:11]) // { dg-error "length \[^\n\r]* above array section size" }
+  #pragma omp task depend(out: e[ :11]) // { dg-error "length \[^\n\r]* above array section size" }
     ;
   #pragma omp task depend(out: f[1:10]) // { dg-error "high bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(in: g[:][2:4]) // { dg-error "for array function parameter length expression must be specified" }
+  #pragma omp task depend(in: g[ : ][2:4]) // { dg-error "for array function parameter length expression must be specified" }
     ;
-  #pragma omp task depend(in: h[2:2][-1:]) // { dg-error "negative low bound in array section" }
+  #pragma omp task depend(in: h[2:2][-1: ]) // { dg-error "negative low bound in array section" }
     ;
-  #pragma omp task depend(inout: h[:1][:-3]) // { dg-error "negative length in array section" }
+  #pragma omp task depend(inout: h[ :1][ :-3]) // { dg-error "negative length in array section" }
     ;
-  #pragma omp task depend(out: i[:1][11:]) // { dg-error "low bound \[^\n\r]* above array section size" }
+  #pragma omp task depend(out: i[ :1][11: ]) // { dg-error "low bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(in: j[3:4][:10]) // { dg-error "length \[^\n\r]* above array section size" }
+  #pragma omp task depend(in: j[3:4][ :10]) // { dg-error "length \[^\n\r]* above array section size" }
     ;
   #pragma omp task depend(out: j[30:10][5:5]) // { dg-error "high bound \[^\n\r]* above array section size" }
     ;
-  #pragma omp task depend(out: a2[:3][2:4])
+  #pragma omp task depend(out: a2[ :3][2:4])
     ;
-  #pragma omp task depend(inout: b2[0:])
+  #pragma omp task depend(inout: b2[0: ])
     ;
-  #pragma omp task depend(inout: c2[:3][1:1])
+  #pragma omp task depend(inout: c2[ :3][1:1])
     ;
-  #pragma omp task depend(in: d2[9:])
+  #pragma omp task depend(in: d2[9: ])
     ;
-  #pragma omp task depend(out: e2[:10])
+  #pragma omp task depend(out: e2[ :10])
     ;
   #pragma omp task depend(out: f2[1:9])
     ;
-  #pragma omp task depend(in: g2[:2][2:4])
+  #pragma omp task depend(in: g2[ :2][2:4])
     ;
-  #pragma omp task depend(in: h2[2:2][0:])
+  #pragma omp task depend(in: h2[2:2][0: ])
     ;
-  #pragma omp task depend(inout: h2[:1][:3])
+  #pragma omp task depend(inout: h2[ :1][ :3])
     ;
-  #pragma omp task depend(out: i2[:1][9:])
+  #pragma omp task depend(out: i2[ :1][9: ])
     ;
-  #pragma omp task depend(in: j2[3:4][:9])
+  #pragma omp task depend(in: j2[3:4][ :9])
     ;
   #pragma omp task depend(out: j2[30:10][5:4])
     ;
index e3ecdddf9cb264b3974946f4bc455d3b5bb2d8c9..69285fc69d08a42e5f06dbe701d014a8da5aca9d 100644 (file)
@@ -24,7 +24,7 @@ int main (int argc, char *argv[])
 
   for (int i = 0; i < 10; i++)
     {
-#pragma omp target map(choose(&a, &b, i)->x[:10])
+#pragma omp target map(choose(&a, &b, i)->x[ :10])
 /* { dg-message {sorry, unimplemented: unsupported map expression 'choose\(\(& a\), \(& b\), i\)->S::x\[0\]'} "" { target *-*-* } .-1 } */
       for (int j = 0; j < 10; j++)
         choose (&a, &b, i)->x[j]++;
index 27dc7a551cbe0bf73c3993d72eb3c5b8d6081990..4416ce99cdc1511a169d098694e2046de22665ac 100644 (file)
@@ -28,13 +28,13 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp target map(from: t[2:5]) /* { dg-error "is threadprivate variable" } */
     ;
-  #pragma omp target map(tofrom: k[0.5:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(tofrom: k[0.5: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(from: l[:7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(from: l[ :7.5f]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(to: m[p:]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(to: m[p: ]) /* { dg-error "low bound \[^\n\r]* of array section does not have integral type" } */
     ;
-  #pragma omp target map(tofrom: n[:p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
+  #pragma omp target map(tofrom: n[ :p]) /* { dg-error "length \[^\n\r]* of array section does not have integral type" } */
     ;
   #pragma omp target map(to: o[2:5]) /* { dg-error "does not have pointer or array type" } */
     ;
@@ -42,73 +42,73 @@ foo (int g[3][10], int h[4][8], int i[2][10], int j[][9],
     ;
   #pragma omp target map(alloc: s2) /* { dg-error "'s2' does not have a mappable type in 'map' clause" } */
     ;
-  #pragma omp target map(to: a[:][:]) /* { dg-error "array type length expression must be specified" } */
+  #pragma omp target map(to: a[ : ][ : ]) /* { dg-error "array type length expression must be specified" } */
     bar (&a[0][0]); /* { dg-error "referenced in target region does not have a mappable type" "PR97996" { xfail *-*-* } } */
-  #pragma omp target map(tofrom: b[-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp target map(tofrom: b[-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (b);
-  #pragma omp target map(tofrom: c[:-3][:]) /* { dg-error "negative length in array section" } */
+  #pragma omp target map(tofrom: c[ :-3][ : ]) /* { dg-error "negative length in array section" } */
     bar (&c[0][0]);
-  #pragma omp target map(from: d[11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp target map(from: d[11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (d);
-  #pragma omp target map(to: e[:11]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp target map(to: e[ :11]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (e);
   #pragma omp target map(to: f[1:10]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (f);
-  #pragma omp target map(from: g[:][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
+  #pragma omp target map(from: g[ : ][0:10]) /* { dg-error "for array function parameter length expression must be specified" } */
     bar (&g[0][0]);
-  #pragma omp target map(from: h[2:1][-1:]) /* { dg-error "negative low bound in array section" } */
+  #pragma omp target map(from: h[2:1][-1: ]) /* { dg-error "negative low bound in array section" } */
     bar (&h[0][0]);
-  #pragma omp target map(tofrom: h[:1][:-3]) /* { dg-error "negative length in array section" } */
+  #pragma omp target map(tofrom: h[ :1][ :-3]) /* { dg-error "negative length in array section" } */
     bar (&h[0][0]);
-  #pragma omp target map(i[:1][11:]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
+  #pragma omp target map(i[ :1][11: ]) /* { dg-error "low bound \[^\n\r]* above array section size" } */
     bar (&i[0][0]);
-  #pragma omp target map(from: j[3:1][:10]) /* { dg-error "length \[^\n\r]* above array section size" } */
+  #pragma omp target map(from: j[3:1][ :10]) /* { dg-error "length \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
   #pragma omp target map(to: j[30:1][5:5]) /* { dg-error "high bound \[^\n\r]* above array section size" } */
     bar (&j[0][0]);
-  #pragma omp target map(to: a2[:1][2:4])
+  #pragma omp target map(to: a2[ :1][2:4])
     bar (&a2[0][0]);
-  #pragma omp target map(a2[3:5][:])
+  #pragma omp target map(a2[3:5][ : ])
     bar (&a2[0][0]);
-  #pragma omp target map(to: a2[3:5][:10])
+  #pragma omp target map(to: a2[3:5][ :10])
     bar (&a2[0][0]);
-  #pragma omp target map(tofrom: b2[0:])
+  #pragma omp target map(tofrom: b2[0: ])
     bar (b2);
-  #pragma omp target map(tofrom: c2[:3][:])
+  #pragma omp target map(tofrom: c2[ :3][ : ])
     bar (&c2[0][0]);
-  #pragma omp target map(from: d2[9:])
+  #pragma omp target map(from: d2[9: ])
     bar (d2);
-  #pragma omp target map(to: e2[:10])
+  #pragma omp target map(to: e2[ :10])
     bar (e2);
   #pragma omp target map(to: f2[1:9])
     bar (f2);
-  #pragma omp target map(g2[:1][2:4])
+  #pragma omp target map(g2[ :1][2:4])
     bar (&g2[0][0]);
-  #pragma omp target map(from: h2[2:2][0:])
+  #pragma omp target map(from: h2[2:2][0: ])
     bar (&h2[0][0]);
-  #pragma omp target map(tofrom: h2[:1][:3])
+  #pragma omp target map(tofrom: h2[ :1][ :3])
     bar (&h2[0][0]);
-  #pragma omp target map(to: i2[:1][9:])
+  #pragma omp target map(to: i2[ :1][9: ])
     bar (&i2[0][0]);
-  #pragma omp target map(from: j2[3:4][:9])
+  #pragma omp target map(from: j2[3:4][ :9])
     bar (&j2[0][0]);
   #pragma omp target map(to: j2[30:1][5:4])
     bar (&j2[0][0]);
   #pragma omp target map(q[1:2])
     ;
-  #pragma omp target map(tofrom: q[3:5][:10]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(tofrom: q[3:5][ :10]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2])
+  #pragma omp target map(r[3: ][2:1][1:2])
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][0:4])
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][0:4])
     ;
-  #pragma omp target map(r[3:][2:1][1:2][1:][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][1: ][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:3][0:4]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ :3][0:4]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][1:]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][1: ]) /* { dg-error "array section is not contiguous" } */
     ;
-  #pragma omp target map(r[3:][2:1][1:2][:][:3]) /* { dg-error "array section is not contiguous" } */
+  #pragma omp target map(r[3: ][2:1][1:2][ : ][ :3]) /* { dg-error "array section is not contiguous" } */
     ;
 }
 
index bbe26061fe35d0ef3910b637974e0795e93e113e..474402d3ccef4cc7398c9b2a984e94067d7ebc5a 100644 (file)
@@ -17,25 +17,25 @@ foo (int *p, int (*q)[10], int r[10], int s[10][10])
   ;
   #pragma omp target map (tofrom: r[-1:2])
   ;
-  #pragma omp target map (tofrom: s[-1:2][:])
+  #pragma omp target map (tofrom: s[-1:2][ : ])
   ;
   #pragma omp target map (tofrom: s[-1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: a[-1:2])      /* { dg-error "negative low bound in array section in" } */
   ;
-  #pragma omp target map (tofrom: b[-1:2][0:])  /* { dg-error "negative low bound in array section in" } */
+  #pragma omp target map (tofrom: b[-1:2][0: ])         /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: b[1:2][-2:10]) /* { dg-error "negative low bound in array section in" } */
   ;
   #pragma omp target map (tofrom: p[2:-3])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp target map (tofrom: q[2:-3][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp target map (tofrom: q[2:-3][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: q[2:3][0:-1])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: r[2:-5])      /* { dg-error "negative length in array section in" } */
   ;
-  #pragma omp target map (tofrom: s[2:-5][:])   /* { dg-error "negative length in array section in" } */
+  #pragma omp target map (tofrom: s[2:-5][ : ])         /* { dg-error "negative length in array section in" } */
   ;
   #pragma omp target map (tofrom: s[2:5][0:-4])         /* { dg-error "negative length in array section in" } */
   ;
index 110996b349c172c4220054e23935871af0dc7a76..f0545bcba5f1639dd7d22c68b26a1df915a62e20 100644 (file)
@@ -20,7 +20,7 @@ main (int argc, char *argv[])
   for (int i = 0; i < 64; i++)
     (s.*ptrp)[i] = i;
 
-#pragma omp target map(s.*xp, s.*ptrp, (s.*ptrp)[:64])
+#pragma omp target map(s.*xp, s.*ptrp, (s.*ptrp)[ :64])
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\*\(\(\(int\*\*\)\(& s\)\) \+ \(\(sizetype\)ptrp\)\)\)' not supported} "" { target *-*-* } .-1 } */
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\(\(int\*\*\)\(& s\)\) \+ \(\(sizetype\)ptrp\)\)' not supported} "" { target *-*-* } .-2 } */
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\(\(int\*\)\(& s\)\) \+ \(\(sizetype\)xp\)\)' not supported} "" { target *-*-* } .-3 } */
index 644e5bb3c84f1f78ac0ad50742803e6cf1979ce2..96aab6791c5e333e42891d3fbc7b8c8f3e2c3df6 100644 (file)
@@ -20,7 +20,7 @@ main (int argc, char *argv[])
   for (int i = 0; i < 64; i++)
     (s->*ptrp)[i] = i;
 
-#pragma omp target map(s->*xp, s->*ptrp, (s->*ptrp)[:64])
+#pragma omp target map(s->*xp, s->*ptrp, (s->*ptrp)[ :64])
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\(\(int\*\*\)s\) \+ \(\(sizetype\)ptrp\)\)' not supported} "" { target *-*-* } .-1 } */
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\(\(int\*\)s\) \+ \(\(sizetype\)xp\)\)' not supported} "" { target *-*-* } .-2 } */
   /* { dg-message {sorry, unimplemented: pointer-to-member mapping '\*\(\*\(\(\(int\*\*\)s\) \+ \(\(sizetype\)ptrp\)\)\)' not supported} "" { target *-*-* } .-3 } */
index a4e3a220c41bea6ff340b9d277a3cd4cc1510f49..495863430dc17c96145cce9bf4f852317a104cd5 100644 (file)
@@ -40,7 +40,7 @@ C::zero ()
 void
 C::do_operation ()
 {
-#pragma omp target map(arr, ptr, ptr[:100])
+#pragma omp target map(arr, ptr, ptr[ :100])
 #pragma omp teams distribute parallel for
   for (int i = 0; i < 100; i++)
     {
@@ -70,7 +70,7 @@ main (int argc, char *argv[])
 
   /* It might sort of make sense to be able to do this, but we don't support
      it for now.  */
-  #pragma omp target map(c.get_arr()[:100])
+  #pragma omp target map(c.get_arr()[ :100])
   /* { dg-message {sorry, unimplemented: unsupported map expression 'c\.C::get_arr\(\)\[0\]'} "" { target *-*-* } .-1 } */
   #pragma omp teams distribute parallel for
     for (int i = 0; i < 100; i++)
@@ -79,7 +79,7 @@ main (int argc, char *argv[])
   c.check (5, 5);
 
   /* Same for this.  */
-  #pragma omp target map(c.get_ptr(), c.get_ptr()[:100])
+  #pragma omp target map(c.get_ptr(), c.get_ptr()[ :100])
   /* { dg-message {sorry, unimplemented: unsupported map expression 'c\.C::get_ptr\(\)'} "" { target *-*-* } .-1 } */
   /* { dg-message {sorry, unimplemented: unsupported map expression '\* c\.C::get_ptr\(\)'} "" { target *-*-* } .-2 } */
   #pragma omp teams distribute parallel for
index f4996b131142a50be1409c540907ec90ead97a7c..c318fd15cba848bf320c72ba745adc463805fc05 100644 (file)
@@ -73,7 +73,7 @@ int main (void)
     if (ptr2[i] != 0)
       abort ();
 
-  #pragma omp target data map(ptr1[:N])
+  #pragma omp target data map(ptr1[ :N])
   mapped = s.set_ptr (val);
 
   if (!mapped)
@@ -86,7 +86,7 @@ int main (void)
     if (ptr1[i] != val)
       abort ();
 
-  #pragma omp target data map(ptr2[:N])
+  #pragma omp target data map(ptr2[ :N])
   mapped = s.set_refptr (val);
 
   if (!mapped)
index bbcde3df23b5e885ab20e797527d2dfb6aaf39a5..8c0ad9a6db2c5f3491f06362283eb0018a8e7b57 100644 (file)
@@ -80,7 +80,7 @@ int main (void)
     if (ptr2[i] != 0)
       abort ();
 
-  #pragma omp target data map(ptr1[:N], ptr2[:N])
+  #pragma omp target data map(ptr1[ :N], ptr2[ :N])
   {
     if (!p1 ())
       abort ();
index 0876719f0a1c248be85c14f5e8af9cd44e1311cd..7b4904fc07b7bbf712462a457c5eb99826b46e7c 100644 (file)
@@ -90,7 +90,7 @@ foo (int &x, int &y, int &r, int &l, int (&l2)[4], int &l3, int &n, int *&p,
        if ((fl & 1) && (((uintptr_t) &l2[0] | (uintptr_t) &l3) & 63) != 0)
          abort ();
       }
-    #pragma omp for reduction(+:p[2:px], q[:3], r2) allocate(h: p, q, r2)
+    #pragma omp for reduction(+:p[2:px], q[ :3], r2) allocate(h: p, q, r2)
     for (i = 0; i < 32; i++)
       {
        p[2] += i;
index 39a48a40920ac6c3ea90ce3d3065d36554026257..4c4ffba88585b40c9cd7266ca9fd0b87751045fe 100644 (file)
@@ -30,7 +30,7 @@ foo0 ()
 
   memset (my_c.a.ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c.a.ptr, my_c.a.ptr[:10])
+  #pragma omp target map (my_c.a.ptr, my_c.a.ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c.a.ptr[i] = i;
@@ -41,7 +41,7 @@ foo0 ()
 
   memset (my_c.b.arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c.b.arr[:10])
+  #pragma omp target map (my_c.b.arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c.b.arr[i] = i;
@@ -81,7 +81,7 @@ foo ()
 
   memset (my_c.a.ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c.a.ptr, my_c.a.ptr[:10])
+  #pragma omp target map (my_c.a.ptr, my_c.a.ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c.a.ptr[i] = i;
@@ -92,7 +92,7 @@ foo ()
 
   memset (my_c.b.arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c.b.arr[:10])
+  #pragma omp target map (my_c.b.arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c.b.arr[i] = i;
@@ -116,7 +116,7 @@ bar ()
 
   memset (my_cref.a.ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_cref.a.ptr, my_cref.a.ptr[:10])
+  #pragma omp target map (my_cref.a.ptr, my_cref.a.ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_cref.a.ptr[i] = i;
@@ -127,7 +127,7 @@ bar ()
 
   memset (my_cref.b.arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_cref.b.arr[:10])
+  #pragma omp target map (my_cref.b.arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_cref.b.arr[i] = i;
@@ -157,7 +157,7 @@ foop0 ()
 
   memset (my_c->a->ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c->a, my_c->a[:1], my_c->a->ptr, my_c->a->ptr[:10])
+  #pragma omp target map (my_c->a, my_c->a[ :1], my_c->a->ptr, my_c->a->ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c->a->ptr[i] = i;
@@ -168,7 +168,7 @@ foop0 ()
 
   memset (my_c->b->arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c->b, my_c->b[:1], my_c->b->arr[:10])
+  #pragma omp target map (my_c->b, my_c->b[ :1], my_c->b->arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c->b->arr[i] = i;
@@ -200,7 +200,7 @@ foop ()
 
   memset (my_c->a->ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c->a, my_c->a[:1], my_c->a->ptr, my_c->a->ptr[:10])
+  #pragma omp target map (my_c->a, my_c->a[ :1], my_c->a->ptr, my_c->a->ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c->a->ptr[i] = i;
@@ -211,7 +211,7 @@ foop ()
 
   memset (my_c->b->arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_c->b, my_c->b[:1], my_c->b->arr[:10])
+  #pragma omp target map (my_c->b, my_c->b[ :1], my_c->b->arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_c->b->arr[i] = i;
@@ -237,8 +237,8 @@ barp ()
 
   memset (my_cref->a->ptr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_cref->a, my_cref->a[:1], my_cref->a->ptr, \
-                         my_cref->a->ptr[:10])
+  #pragma omp target map (my_cref->a, my_cref->a[ :1], my_cref->a->ptr, \
+                         my_cref->a->ptr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_cref->a->ptr[i] = i;
@@ -249,7 +249,7 @@ barp ()
 
   memset (my_cref->b->arr, 0, sizeof (int) * 10);
 
-  #pragma omp target map (my_cref->b, my_cref->b[:1], my_cref->b->arr[:10])
+  #pragma omp target map (my_cref->b, my_cref->b[ :1], my_cref->b->arr[ :10])
   {
     for (int i = 0; i < 10; i++)
       my_cref->b->arr[i] = i;
index 16bdfff3ae08a39b1302a53b325fa7d2586731e4..5c18bf36803b2aaca9c1c16cb54fd23914d45a75 100644 (file)
@@ -35,8 +35,8 @@ main ()
   memset (my_c->a->ptr2, 0, sizeof (int) * 10);
 
   #pragma omp target map (my_c->a, \
-                         my_c->a->ptr, my_c->a->ptr[:10], \
-                         my_c->a->ptr2, my_c->a->ptr2[:10])
+                         my_c->a->ptr, my_c->a->ptr[ :10], \
+                         my_c->a->ptr2, my_c->a->ptr2[ :10])
   {
     for (int i = 0; i < 10; i++)
       {
index d8d3f7f1f99a32f178cf3239fca92c2f0fe49ef8..b6dd34b0e68d0ee1d71768e9019cef8b9ce82f0b 100644 (file)
@@ -16,14 +16,14 @@ public:
 
   void incr_with_this (int c)
   {
-#pragma omp target map(this->array[:N])
+#pragma omp target map(this->array[ :N])
     for (int i = 0; i < N; i++)
       array[i] += c;
   }
 
   void incr_without_this (int c)
   {
-#pragma omp target map(array[:N])
+#pragma omp target map(array[ :N])
     for (int i = 0; i < N; i++)
       array[i] += c;
   }
index 4298e23421772dced138a5236028865e3c66f397..cf7dd4b3194828d81675c243ad29e5f960753d6a 100644 (file)
@@ -33,7 +33,7 @@ void vec_mult_ref (float *&p, float *&v1, float *&v2, int n)
 
 void vec_mult (float *&p, float *&v1, float *&v2, int n)
 {
-  #pragma omp target map(to: v1[0:n], v2[:n]) map(from: p[0:n])
+  #pragma omp target map(to: v1[0:n], v2[ :n]) map(from: p[0:n])
     #pragma omp parallel for
       for (int i = 0; i < n; i++)
        p[i] = v1[i] * v2[i];
index adc493b1315cb5ba16498c3909d46c9521099223..91835c444e08bcb0da9e9c0aa470d8a63fbc1f1e 100644 (file)
@@ -23,7 +23,7 @@ void foo()
   for (int i = 0; i < aw.length; i++)
     aw.data[i] = i;
 
-#pragma omp target update from(aw.data[:aw.length])
+#pragma omp target update from(aw.data[ :aw.length])
 
 #pragma omp target exit data map(delete: aw.data, aw.length, \
                                 aw.data[0:aw.length])
@@ -54,7 +54,7 @@ main ()
   for (int i = 0; i < aw.length; i++)
     aw.data[i] = i;
 
-#pragma omp target update from(aw.data[:aw.length])
+#pragma omp target update from(aw.data[ :aw.length])
 
 #pragma omp target exit data map(delete: aw.data, aw.length, \
                                 aw.data[0:aw.length])
index fcd3e970bd89fddea50eed54036113f3d3143944..22c81aa5f860720f6d40beb3be75985fb40090c2 100644 (file)
@@ -64,8 +64,8 @@ int main() {
   double* inptr = in.data();
   double* outptr = out.data();
 
-#pragma omp target teams distribute parallel for map(inptr[:10], outptr[:10]) is_device_ptr(devPtr)
-#pragma acc parallel loop copy(inptr[:10], outptr[:10]) deviceptr(devPtr)
+#pragma omp target teams distribute parallel for map(inptr[ :10], outptr[ :10]) is_device_ptr(devPtr)
+#pragma acc parallel loop copy(inptr[ :10], outptr[ :10]) deviceptr(devPtr)
   for(int i = 0; i < 10; i++) {
     outptr[i] = devPtr->sag(inptr[i], inptr[i]);
   }
index ee88c2f9fd09b88687309028f50e98f3cb7c3194..3d2fb7fdfb00801a5360a9d438c1bf1dbfa0a0da 100644 (file)
@@ -6,7 +6,7 @@ struct S {
   foo ()
   {
     int res = 0;
-#pragma omp target map(size, ptr[:size], res) nowait
+#pragma omp target map(size, ptr[ :size], res) nowait
     res = ptr[size - 1];
 #pragma omp taskwait
     return res;
index 2254430f168c60b4636103db4d853710c75e12c3..353a6678fbbffd192c861d16a9dceb15f4abfe60 100644 (file)
@@ -63,9 +63,9 @@ foo (A<int> (*&x)[3][N], M<int> *y, B<long> (&w)[1][N], int p1, long p2, long p3
   short (&b)[p7] = bb;
   for (int i = 0; i < p7; i++)
     bb[i] = -6;
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2 + N - 2], z[:p3]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5 - N + 2]) \
-                          reduction(&:w[0:p6 - 3 + N][:p6]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2 + N - 2], z[ :p3]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5 - N + 2]) \
+                          reduction(&:w[0:p6 - 3 + N][ :p6]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
@@ -120,9 +120,9 @@ template <int N>
 void
 S<N>::foo (int p1, long p2, long p3, int p4, int p5, long p6, short p7)
 {
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2][0:N], z[:p3 + N - 2]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5]) \
-                          reduction(&:w[0:p6 - 3 + N][:p6]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2][0:N], z[ :p3 + N - 2]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5]) \
+                          reduction(&:w[0:p6 - 3 + N][ :p6]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
index 67c7320cf5c78017e69c90db366793e8ccb38231..9e3ee3f1a66cc0ed23f8482e38053072edf97a25 100644 (file)
@@ -7,9 +7,9 @@ foo (int (*&x)[3][2], int *y, long (&w)[1][2], int s, int t)
 {
   unsigned long long a[9] = {};
   short b[5] = {};
-  #pragma omp parallel for reduction(+:x[-1:2][:][0:2], z[t + 2:4]) \
+  #pragma omp parallel for reduction(+:x[-1:2][ : ][0:2], z[t + 2:4]) \
                           reduction(*:y[-s:3]) reduction(|:a[s + 3:4]) \
-                          reduction(&:w[s + 1:][t:2]) reduction(max:b[2:])
+                          reduction(&:w[s + 1: ][t:2]) reduction(max:b[2: ])
   for (int i = 0; i < 128; i++)
     {
       x[i / 64 - 1][i % 3][(i / 4) & 1] += i;
@@ -59,9 +59,9 @@ struct S
 void
 S::foo (int s, int t)
 {
-  #pragma omp parallel for reduction(+:x[-1:2][:][0:2], z[t + 2:4]) \
+  #pragma omp parallel for reduction(+:x[-1:2][ : ][0:2], z[t + 2:4]) \
                           reduction(*:y[-s:3]) reduction(|:a[s + 3:4]) \
-                          reduction(&:w[s + 1:][t:2]) reduction(max:b[2:])
+                          reduction(&:w[s + 1: ][t:2]) reduction(max:b[2: ])
   for (int i = 0; i < 128; i++)
     {
       x[i / 64 - 1][i % 3][(i / 4) & 1] += i;
index 1495549a956ed0ae34be8c48325cc5c1e8f20617..ef3c3e5f91643ce7d405624ccdfc45a044ec95ad 100644 (file)
@@ -65,9 +65,9 @@ foo (A<int> (*&x)[3][N], M<int> *y, B<long> (&w)[1][N], int p1, long p2, long p3
   short (&b)[p7] = bb;
   for (int i = 0; i < p7; i++)
     bb[i] = -6;
-  #pragma omp parallel for reduction(+:x[-1:p1 + 1][:p2 + N - 2], z[t + N:p3]) \
+  #pragma omp parallel for reduction(+:x[-1:p1 + 1][ :p2 + N - 2], z[t + N:p3]) \
                           reduction(*:y[-s:p4]) reduction(|:a[s + 3:p5 - N + 2]) \
-                          reduction(&:w[s + 1:p6 - 3 + N][t:p6]) reduction(maxb:b[N:])
+                          reduction(&:w[s + 1:p6 - 3 + N][t:p6]) reduction(maxb:b[N: ])
   for (int i = 0; i < 128; i++)
     {
       x[i / 64 - 1][i % 3][(i / 4) & 1].t += i;
@@ -118,9 +118,9 @@ template <int N>
 void
 S<N>::foo (int p1, long p2, long p3, int p4, int p5, long p6, short p7, int s, int t)
 {
-  #pragma omp parallel for reduction(+:x[-1:p1 + 1][:p2][0:N], z[t + N:p3 + N - 2]) \
+  #pragma omp parallel for reduction(+:x[-1:p1 + 1][ :p2][0:N], z[t + N:p3 + N - 2]) \
                           reduction(*:y[-s:p4]) reduction(|:a[s + 3:p5]) \
-                          reduction(&:w[s + 1:p6 - 3 + N][t:p6]) reduction(maxb:b[N:])
+                          reduction(&:w[s + 1:p6 - 3 + N][t:p6]) reduction(maxb:b[N: ])
   for (int i = 0; i < 128; i++)
     {
       x[i / 64 - 1][i % 3][(i / 4) & 1].t += i;
index 212fd69be58e78aea01d2945984edb3bc47bc84d..127519dd4559bbc1bcc4734ef3fd85c188ef4d45 100644 (file)
@@ -5,9 +5,9 @@ foo (int (*&x)[3][2], int *y, long (&w)[1][2])
 {
   unsigned long long a[9] = {};
   short b[5] = {};
-  #pragma omp parallel for reduction(+:x[0:2][:][0:2], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:2]) reduction(max:b)
+  #pragma omp parallel for reduction(+:x[0:2][ : ][0:2], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :2]) reduction(max:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
@@ -61,9 +61,9 @@ struct S
 void
 S::foo ()
 {
-  #pragma omp parallel for reduction(+:x[0:2][:][0:2], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:2]) reduction(max:b)
+  #pragma omp parallel for reduction(+:x[0:2][ : ][0:2], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :2]) reduction(max:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
index f180ca35edde25391c5efc418fe014d10e7d36e4..4c06f8d399c858644f32a5eda1c2286926f9036a 100644 (file)
@@ -59,9 +59,9 @@ foo (A<int> (*&x)[3][2], M<int> *y, B<long> (&w)[1][2])
   A<unsigned long long> a[9];
   short bb[5] = {};
   short (&b)[5] = bb;
-  #pragma omp parallel for reduction(+:x[0:2][:][0:2], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:2]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:2][ : ][0:2], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :2]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
@@ -114,9 +114,9 @@ struct S
 void
 S::foo ()
 {
-  #pragma omp parallel for reduction(+:x[0:2][:][0:2], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:2]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:2][ : ][0:2], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :2]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
index 75f9d08aac4b0396a750e11c2bc69c3a62b99a7c..616e3a0d0e55c485f5802b1b3ca443dd54f55e2f 100644 (file)
@@ -12,9 +12,9 @@ foo (int (*&x)[3][2], int *y, long (&w)[1][2], int p1, long p2, long p3, int p4,
        b[i] = -6;
       a[i] = 0;
     }
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2], z[:p3]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5]) \
-                          reduction(&:w[0:p6 - 1][:p6]) reduction(max:b)
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2], z[ :p3]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5]) \
+                          reduction(&:w[0:p6 - 1][ :p6]) reduction(max:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
@@ -68,9 +68,9 @@ struct S
 void
 S::foo (int p1, long p2, long p3, int p4, int p5, long p6, short p7)
 {
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2], z[:p3]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5]) \
-                          reduction(&:w[0:p6 - 1][:p6]) reduction(max:b[0:p7])
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2], z[ :p3]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5]) \
+                          reduction(&:w[0:p6 - 1][ :p6]) reduction(max:b[0:p7])
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
index cffd7cc2d4c9ec7b334ecab97aa63fbc896a5f4a..6bd5ea65c811ac113a77d31a459e86f88adaf44a 100644 (file)
@@ -62,9 +62,9 @@ foo (A<int> (*&x)[3][2], M<int> *y, B<long> (&w)[1][2], int p1, long p2, long p3
   short (&b)[p7] = bb;
   for (int i = 0; i < p7; i++)
     bb[i] = -6;
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2], z[:p3]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5]) \
-                          reduction(&:w[0:p6 - 1][:p6]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2], z[ :p3]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5]) \
+                          reduction(&:w[0:p6 - 1][ :p6]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
@@ -117,9 +117,9 @@ struct S
 void
 S::foo (int p1, long p2, long p3, int p4, int p5, long p6, short p7)
 {
-  #pragma omp parallel for reduction(+:x[0:p1 + 1][:p2][0:2], z[:p3]) \
-                          reduction(*:y[:p4]) reduction(|:a[:p5]) \
-                          reduction(&:w[0:p6 - 1][:p6]) reduction(maxb:b)
+  #pragma omp parallel for reduction(+:x[0:p1 + 1][ :p2][0:2], z[ :p3]) \
+                          reduction(*:y[ :p4]) reduction(|:a[ :p5]) \
+                          reduction(&:w[0:p6 - 1][ :p6]) reduction(maxb:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1].t += i;
index 117a8f66c527e7d282035561e0244eadb62d3d05..d6f30410cb01c44a7f109c4a39b999e034661359 100644 (file)
@@ -6,9 +6,9 @@ foo (int (*&x)[3][N], int *y, long (&w)[1][N])
 {
   unsigned long long a[9] = {};
   short b[5] = {};
-  #pragma omp parallel for reduction(+:x[0:N][:][0:N], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:N]) reduction(max:b)
+  #pragma omp parallel for reduction(+:x[0:N][ : ][0:N], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :N]) reduction(max:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
@@ -64,9 +64,9 @@ template <int N>
 void
 S<N>::foo ()
 {
-  #pragma omp parallel for reduction(+:x[0:N][:][0:N], z[:4]) \
-                          reduction(*:y[:3]) reduction(|:a[:4]) \
-                          reduction(&:w[0:][:N]) reduction(max:b)
+  #pragma omp parallel for reduction(+:x[0:N][ : ][0:N], z[ :4]) \
+                          reduction(*:y[ :3]) reduction(|:a[ :4]) \
+                          reduction(&:w[0: ][ :N]) reduction(max:b)
   for (int i = 0; i < 128; i++)
     {
       x[i / 64][i % 3][(i / 4) & 1] += i;
index a21ed4e81f9c26b06acc6df0ab6773654e37c11e..5d616da00fcdbcbf149e20bc280fd82ec23a63dd 100644 (file)
@@ -12,7 +12,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
     /* For zero length array sections, p points to the start of
        already mapped range, q to the end of it (with nothing mapped
        after it), and r does not point to an mapped range.  */
-    #pragma omp target map(alloc:p[:0]) map(to:q[:0]) map(from:r[:0]) private(i) map(from:err) firstprivate (s)
+    #pragma omp target map(alloc:p[ :0]) map(to:q[ :0]) map(from:r[ :0]) private(i) map(from:err) firstprivate (s)
     {
       err = 0;
       for (i = 0; i < 8; i++)
@@ -51,7 +51,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
       abort ();
     /* And zero-length array sections, though not known at compile
        time, behave the same.  */
-    #pragma omp target map(p[:n]) map(tofrom:q[:n]) map(alloc:r[:n]) private(i) map(from:err) firstprivate (s)
+    #pragma omp target map(p[ :n]) map(tofrom:q[ :n]) map(alloc:r[ :n]) private(i) map(from:err) firstprivate (s)
     {
       err = 0;
       for (i = 0; i < 8; i++)
@@ -71,7 +71,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
       abort ();
     /* Non-zero length array sections, though not known at compile,
        behave differently.  */
-    #pragma omp target map(p[:m]) map(tofrom:q[:m]) map(to:r[:m]) private(i) map(from:err)
+    #pragma omp target map(p[ :m]) map(tofrom:q[ :m]) map(to:r[ :m]) private(i) map(from:err)
     {
       err = 0;
       for (i = 0; i < 8; i++)
@@ -87,7 +87,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
       /* For zero length array sections, p points to the start of
         already mapped range, q points to the start of another one,
         and r to the end of the second one.  */
-      #pragma omp target map(to:p[:0]) map(from:q[:0]) map(tofrom:r[:0]) private(i) map(from:err)
+      #pragma omp target map(to:p[ :0]) map(from:q[ :0]) map(tofrom:r[ :0]) private(i) map(from:err)
       {
        err = 0;
        for (i = 0; i < 8; i++)
@@ -128,7 +128,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
        abort ();
       /* And zero-length array sections, though not known at compile
         time, behave the same.  */
-      #pragma omp target map(p[:n]) map(alloc:q[:n]) map(from:r[:n]) private(i) map(from:err)
+      #pragma omp target map(p[ :n]) map(alloc:q[ :n]) map(from:r[ :n]) private(i) map(from:err)
       {
        err = 0;
        for (i = 0; i < 8; i++)
@@ -149,7 +149,7 @@ foo (int *&p, int *&q, int *&r, int n, int m)
        abort ();
       /* Non-zero length array sections, though not known at compile,
         behave differently.  */
-      #pragma omp target map(p[:m]) map(alloc:q[:m]) map(tofrom:r[:m]) private(i) map(from:err)
+      #pragma omp target map(p[ :m]) map(alloc:q[ :m]) map(tofrom:r[ :m]) private(i) map(from:err)
       {
        err = 0;
        for (i = 0; i < 8; i++)
index 7bae31d2734dcce2fe675e169a6c8abcce992653..3a00a6740ada617c9b8514320cf441431db72b14 100644 (file)
@@ -21,7 +21,7 @@ foo (S s, int (&t)[3], int z)
   }
   if (err) abort ();
   // But explicit zero length array section mapping does.
-  #pragma omp target map(from: err) map(tofrom: s.r[:0], t[:0])
+  #pragma omp target map(from: err) map(tofrom: s.r[ :0], t[ :0])
   {
     if (sep)
       /* Since OpenMP 5.2, if no matching mapped list it has been found,
@@ -32,7 +32,7 @@ foo (S s, int (&t)[3], int z)
   }
   if (err) abort ();
   // Similarly zero length array section, but unknown at compile time.
-  #pragma omp target map(from: err) map(tofrom: s.r[:z], t[:z])
+  #pragma omp target map(from: err) map(tofrom: s.r[ :z], t[ :z])
   {
     if (sep)
       /* Since OpenMP 5.2, if no matching mapped list it has been found,
@@ -44,13 +44,13 @@ foo (S s, int (&t)[3], int z)
   if (err) abort ();
   #pragma omp target enter data map (to: s.r, t)
   // But when already mapped, it binds to existing mappings.
-  #pragma omp target map(from: err) map(tofrom: s.r[:0], t[:0])
+  #pragma omp target map(from: err) map(tofrom: s.r[ :0], t[ :0])
   {
     err = t[0] != 1 || t[1] != 2 || t[2] != 3 || s.r[0] != 6 || s.r[1] != 7;
     sep = 0;
   }
   if (err) abort ();
-  #pragma omp target map(from: err) map(tofrom: s.r[:z], t[:z])
+  #pragma omp target map(from: err) map(tofrom: s.r[ :z], t[ :z])
   {
     err = t[0] != 1 || t[1] != 2 || t[2] != 3 || s.r[0] != 6 || s.r[1] != 7;
     sep = 0;
index 1eab7f29b4a799804206f798df4c47b47ddc0f41..bbf2d8a48e65bf118c3c16e03c9a1ec9dd8c47f3 100644 (file)
@@ -32,7 +32,7 @@ fn2 (int x, double (&dr) [1024], double *&er)
   double *&ir = i;
   int j;
   fn1 (hr + 2 * x, ir + 2 * x, x);
-  #pragma omp target map(to: br[:x], cr[0:x], dr[x:x], er[x:x]) \
+  #pragma omp target map(to: br[ :x], cr[0:x], dr[x:x], er[x:x]) \
                     map(to: fr[0:x], gr[0:x], hr[2 * x:x], ir[2 * x:x]) \
                     map(tofrom: s)
     #pragma omp parallel for reduction(+:s)
index 9d9dea01c757f255660cd1ff111528e4299413dc..da7967b8d24d8ab992ad98e1c5763d3c16f92a41 100644 (file)
@@ -20,7 +20,7 @@ foo (int *&p, int (&s)[5], int &t, S &u, int n)
   }
   if (err)
     abort ();
-  #pragma omp target data use_device_ptr(p) map(from:err) map(to:q[:4])
+  #pragma omp target data use_device_ptr(p) map(from:err) map(to:q[ :4])
   #pragma omp target is_device_ptr(p) private(i) map(from:err)
   {
     err = 0;
@@ -50,7 +50,7 @@ foo (int *&p, int (&s)[5], int &t, S &u, int n)
   }
   if (err)
     abort ();
-  #pragma omp target data map(to:s[:5]) use_device_addr(s) map(from:err)
+  #pragma omp target data map(to:s[ :5]) use_device_addr(s) map(from:err)
   #pragma omp target is_device_ptr(s) private(i) map(from:err)
   {
     err = 0;
index 63d343624b0cfffd742942536511a7caa3e06d89..66a693e37507103c3f5078990b74aebc3e062156 100644 (file)
@@ -16,13 +16,13 @@ main (void)
     s->data[i] = 0;
 
   #pragma omp target enter data map(to: s)
-  #pragma omp target enter data map(to: s->data, s->data[:SZ])
+  #pragma omp target enter data map(to: s->data, s->data[ :SZ])
   #pragma omp target
   {
     for (int i = 0; i < SZ; i++)
       s->data[i] = i;
   }
-  #pragma omp target exit data map(from: s->data, s->data[:SZ])
+  #pragma omp target exit data map(from: s->data, s->data[ :SZ])
   #pragma omp target exit data map(from: s)
 
   for (int i = 0; i < SZ; i++)
index 83a61cf599b45933ffb95062223fe08136ab98c3..1b6d2b45c2910821dead0ef2aaf79312992be363 100644 (file)
@@ -21,7 +21,7 @@ foo (int *&p, int (&s)[5], int &t, S &u, int n)
   }
   if (err)
     abort ();
-  #pragma omp target data map(to:q[:4])
+  #pragma omp target data map(to:q[ :4])
   #pragma omp target data use_device_ptr(p) map(from:err)
   #pragma omp target is_device_ptr(p) private(i) map(from:err)
   {
@@ -54,7 +54,7 @@ foo (int *&p, int (&s)[5], int &t, S &u, int n)
   }
   if (err)
     abort ();
-  #pragma omp target data map(to:s[:5])
+  #pragma omp target data map(to:s[ :5])
   #pragma omp target data use_device_addr(s) map(from:err)
   #pragma omp target is_device_ptr(s) private(i) map(from:err)
   {
index 7ab047ffb49010ae17b7f73f16f56497e905e076..38b0381cb12d9eb4686e6f832e7364220e7f346c 100644 (file)
@@ -15,7 +15,7 @@ template<typename T, std::size_t Size>
 bool test_stack(T (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       const std::size_t half_size = Size / 2;
@@ -79,7 +79,7 @@ template<typename T, std::size_t Size>
 bool test_queue(T (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       const std::size_t half_size = Size / 2;
@@ -156,7 +156,7 @@ template<typename T, std::size_t Size>
 bool test_priority_queue(T (&arr)[Size], const T min_value, const T max_value)
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       typedef std::priority_queue<T, std::vector<T> > priority_queue_type;
index 28201f468b6134c4716946b13b66b293a8c0947e..9eaa8a9933a9579eb45e752c1ebe142a53add2bb 100644 (file)
@@ -31,7 +31,7 @@ template<typename K, typename V, typename std::size_t Size>
 bool test_flat_map(std::pair<K, V> (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -52,7 +52,7 @@ template<typename K, typename V, typename std::size_t Size>
 bool test_flat_multimap(std::pair<K, V> (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -81,7 +81,7 @@ template<typename T, typename std::size_t Size>
 bool test_flat_set(T (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -102,7 +102,7 @@ template<typename T, typename std::size_t Size>
 bool test_flat_multiset(T (&arr)[Size])
 {
   bool ok;
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
index 024fb731fd80c60e2dfb49c221cf1e44b492c740..d4534c7f486bd457d30ab9a9837daf62e82509c0 100644 (file)
@@ -89,8 +89,8 @@ bool vector_test(const T (&arr)[Size])
   bool ok;
   T out_arr[Size];
   T out_mut_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size], out_mut_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_mut_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -121,8 +121,8 @@ bool deque_test(const T (&arr)[Size])
   bool ok;
   T out_arr[Size];
   T out_mut_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size], out_mut_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_mut_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -153,8 +153,8 @@ bool list_test(const T (&arr)[Size])
   bool ok;
   T out_arr[Size];
   T out_mut_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size], out_mut_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_mut_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -254,9 +254,9 @@ bool map_test(const std::pair<K, V> (&arr)[Size])
   std::size_t out_size;
   std::pair<K, V> out_pairs_mut[Size];
   std::size_t out_size_mut;
-  #pragma omp target map(from: ok, out_pairs[:Size], out_size, \
-                              out_pairs_mut[:Size], out_size_mut) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_pairs[ :Size], out_size, \
+                              out_pairs_mut[ :Size], out_size_mut) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -296,8 +296,8 @@ bool set_test(const T (&arr)[Size])
   /* Both sizes should be the same.  */
   T out_arr[Size];
   std::size_t out_size;
-  #pragma omp target map(from: ok, out_arr[:Size], out_size) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_size) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -382,8 +382,8 @@ bool multimap_test(const std::pair<K, V> (&arr)[Size])
   bool ok;
   std::pair<K, V> out_pairs[Size];
   std::pair<K, V> out_pairs_mut[Size];
-  #pragma omp target map(from: ok, out_pairs[:Size], out_pairs_mut[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_pairs[ :Size], out_pairs_mut[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -413,8 +413,8 @@ bool multiset_test(const T (&arr)[Size])
   std::multiset<T> reference_multiset(arr, arr + Size);
   bool ok;
   T out_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -442,8 +442,8 @@ bool array_test(const T (&arr)[Size])
   bool ok;
   T out_arr[Size];
   T out_mut_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size], out_mut_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_mut_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -482,8 +482,8 @@ bool forward_list_test(const T (&arr)[Size])
   bool ok;
   T out_arr[Size];
   T out_mut_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size], out_mut_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_mut_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -518,9 +518,9 @@ bool unordered_map_test(const std::pair<K, V> (&arr)[Size])
   std::size_t out_size;
   std::pair<K, V> out_pairs_mut[Size];
   std::size_t out_size_mut;
-  #pragma omp target map(from: ok, out_pairs[:Size], out_size, \
-                              out_pairs_mut[:Size], out_size_mut) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_pairs[ :Size], out_size, \
+                              out_pairs_mut[ :Size], out_size_mut) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -560,8 +560,8 @@ bool unordered_set_test(const T (&arr)[Size])
   /* Both sizes should be the same.  */
   T out_arr[Size];
   std::size_t out_size;
-  #pragma omp target map(from: ok, out_arr[:Size], out_size) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size], out_size) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -593,8 +593,8 @@ bool unordered_multimap_test(const std::pair<K, V> (&arr)[Size])
   bool ok;
   std::pair<K, V> out_pairs[Size];
   std::pair<K, V> out_pairs_mut[Size];
-  #pragma omp target map(from: ok, out_pairs[:Size], out_pairs_mut[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_pairs[ :Size], out_pairs_mut[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
@@ -624,8 +624,8 @@ bool unordered_multiset_test(const T (&arr)[Size])
   std::unordered_multiset<T> reference_multiset(arr, arr + Size);
   bool ok;
   T out_arr[Size];
-  #pragma omp target map(from: ok, out_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
index 8e8ca8eabb31fec63c45ff0ab7cf43721998cffb..9303ee54a42ef2136aa3404a6d23f52c5e289035 100644 (file)
@@ -101,7 +101,7 @@ bool test_memcpy(int arg, const int *nums, std::size_t nums_size)
 {
   bool ok;
   Extendable2 e2_out;
-  #pragma omp target map(from: ok, e2_out) map(to: arg, nums[:nums_size], nums_size)
+  #pragma omp target map(from: ok, e2_out) map(to: arg, nums[ :nums_size], nums_size)
     {
       bool inner_ok = true;
       {
index c66075b05322bc4526242c454b273ff9f3978880..7a7eb39f3a5c5c3dc0b111723ccebe2cddc7bc4e 100644 (file)
@@ -10,7 +10,7 @@ bool test_initializer_list(int arg)
   static constexpr std::size_t out_arr_size = 7;
   int out_arr[out_arr_size];
   bool ok;
-  #pragma omp target map(from: ok, out_arr[:out_arr_size]) map(to: arg)
+  #pragma omp target map(from: ok, out_arr[ :out_arr_size]) map(to: arg)
     {
       bool inner_ok = true;
       {
index ef9e5a9b29bbeb83e88a3ff30f0a19afe20a2d48..ecfd8cb108a4e9dda1a7ab7ac3fc501c412267b6 100644 (file)
@@ -22,7 +22,7 @@ bool test(std::size_t arg)
   std::vector<int> vec(arg);
   int *data = vec.data();
   std::size_t size = vec.size();
-  #pragma omp target defaultmap(none) map(from: ok, midpoint_out) map(tofrom: data[:size]) map(to: arg, size)
+  #pragma omp target defaultmap(none) map(from: ok, midpoint_out) map(tofrom: data[ :size]) map(to: arg, size)
     {
       std::span span = {data, size};
       bool inner_ok = true;
index 7f74401a6841c8749a96c387cbb4c679ec147f45..0ed4fbcaa12d4939dd97c5c600196e066ed57580 100644 (file)
@@ -10,7 +10,7 @@ bool test_initializer_list(int arg)
   static constexpr std::size_t out_arr_size = 7;
   int out_arr[out_arr_size];
   bool ok;
-  #pragma omp target map(from: ok, out_arr[:out_arr_size]) map(to: arg)
+  #pragma omp target map(from: ok, out_arr[ :out_arr_size]) map(to: arg)
     {
       bool inner_ok = true;
       {
index bb8a39bb26588b4584d0375f80833e7ddb00eadd..6c16c794a1d2f644fdd0b120221e0f9392046f97 100644 (file)
@@ -12,7 +12,7 @@ bool test_initializer_list(int arg)
   static constexpr std::size_t out_arr_size = 7;
   int out_arr[out_arr_size];
   bool ok;
-  #pragma omp target map(from: ok, out_arr[:out_arr_size]) map(to: arg)
+  #pragma omp target map(from: ok, out_arr[ :out_arr_size]) map(to: arg)
     {
       bool inner_ok = true;
       {
index 4d36341f567258d7208229d67b34073f32c94302..7232d920751b70ffee0dceb9a929ada195c0a915 100644 (file)
@@ -42,9 +42,9 @@ bool test(const T (&arr)[Size])
   T out_fwd_arr[Size];
   T out_first_half_arr[Size / 2];
   #pragma omp target defaultmap(none) \
-                    map(from: ok, out_rev_arr[:Size], out_fwd_arr[:Size], \
-                              out_first_half_arr[:Size / 2]) \
-                    map(to: arr[:Size])
+                    map(from: ok, out_rev_arr[ :Size], out_fwd_arr[ :Size], \
+                              out_first_half_arr[ :Size / 2]) \
+                    map(to: arr[ :Size])
     {
       bool inner_ok = true;
       {
index 014b9f5807a6d58abbfddf09755233ace5bc7ec7..7e1bf96c8d17815851428030b4aff67be85622ad 100644 (file)
@@ -11,8 +11,8 @@ bool test(const T (&arr)[Size])
   bool ok;
   T out_2x_arr[Size];
   T out_shifted_arr[Size];
-  #pragma omp target map(from: ok, out_2x_arr[:Size], out_shifted_arr[:Size]) \
-                    map(to: arr[:Size])
+  #pragma omp target map(from: ok, out_2x_arr[ :Size], out_shifted_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       std::vector<T> vec(Size);
       std::vector<T> mutated(Size);
index 9070c2d34b834cfa32bd02b16c2a7f8f9f41f118..551679f65fb05238fe49010e06077e1e65d4cea0 100644 (file)
@@ -20,8 +20,8 @@ bool test(const T (&arr)[Size])
   T out_2x_arr[Size];
   T out_shifted_arr[Size];
   #pragma omp target defaultmap(none) \
-                    map(from: ok, out_2x_arr[:Size], out_shifted_arr[:Size]) \
-                    map(to: arr[:Size])
+                    map(from: ok, out_2x_arr[ :Size], out_shifted_arr[ :Size]) \
+                    map(to: arr[ :Size])
     {
       std::vector<T> vec(Size);
       std::vector<T> mutated(Size);
index ef6b942059c1f71ac3e13b0477232fd41518965e..6fb434504ffbf662b22d3ab1cceca3a0e2297135 100644 (file)
@@ -20,7 +20,7 @@ bool f()
   const int arr_rev[8] = {7, 6, 5, 4, 3, 2, 1, 0};
 
   bool ok;
-  #pragma omp target defaultmap(none) map(from: ok) map(to: arr_fwd[:8], arr_rev[:8])
+  #pragma omp target defaultmap(none) map(from: ok) map(to: arr_fwd[ :8], arr_rev[ :8])
     {
       std::span<const int> fwd = {arr_fwd, 8};
       std::span<const int> rev = {arr_rev, 8};
index f41a1bbed366a08356d4886daf1683a62d728251..6e1c4d65f64ab14ff6bab18f6f1e5806ec045df2 100644 (file)
@@ -21,7 +21,7 @@ bool test(const T (&arr)[Size])
 {
   bool ok;
   T out_arr[Size];
-  #pragma omp target map(from: ok) map(to: arr[:Size])
+  #pragma omp target map(from: ok) map(to: arr[ :Size])
     {
       std::span span = {arr, Size};
       bool inner_ok = true;
index a86fefb8d793302ac18bee4df74e0b0b41593b6e..d7ed69fdd84c709f355ba4e435d6c3c56ff9841f 100644 (file)
@@ -34,7 +34,7 @@ bool test(Rn&& range)
   value_type *data = vec.data();
   std::size_t size = vec.size();
   bool ok;
-  #pragma omp target map(from: ok) map(tofrom: data[:size]) map(to: size)
+  #pragma omp target map(from: ok) map(tofrom: data[ :size]) map(to: size)
     {
       std::vector<value_type> orig = {data, data + size};
       std::span<value_type> span = {data, size};
index 2c4571be4555668b54f2d00d1f2eb00ec7f92fcf..ae5b09ad2993f14d6729807c1ba0bead719b622b 100644 (file)
@@ -18,8 +18,8 @@ void
 bar (T (&x)[])
 {
   x[0] = 24;
-  #pragma omp target data map(x[:2]) use_device_addr(x)
-    #pragma omp target has_device_addr(x[:2])
+  #pragma omp target data map(x[ :2]) use_device_addr(x)
+    #pragma omp target has_device_addr(x[ :2])
       x[0] = 42;
 
   if (x[0] != 42)
index 21130f5bb8206ebf89073af5e5a45dd1649e9280..a1d1e57c002239a7b3231eee12d624979b3eac40 100644 (file)
@@ -8,9 +8,9 @@ foo (int &x, int *&y, int n, int v)
   int (&w)[n] = wu;
   for (i = 0; i < n; i++)
     w[i] = u[i] = n + i;
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x++;
       y[0] += 2;
@@ -19,7 +19,7 @@ foo (int &x, int *&y, int n, int v)
       u[0] += 5;
       w[1] += 6;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x += 4;
       y[0] += 5;
@@ -28,7 +28,7 @@ foo (int &x, int *&y, int n, int v)
       u[1] += 8;
       w[2] += 7;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x += 9;
       y[0] += 10;
@@ -59,9 +59,9 @@ bar (int &x, int *&y, int n, int v)
   for (i = 0; i < n; i++)
     w[i] = u[i] = n + i;
   #pragma omp parallel master
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x++;
       y[0] += 2;
@@ -70,7 +70,7 @@ bar (int &x, int *&y, int n, int v)
       u[0] += 5;
       w[1] += 6;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x += 4;
       y[0] += 5;
@@ -79,7 +79,7 @@ bar (int &x, int *&y, int n, int v)
       u[1] += 8;
       w[2] += 7;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x += 9;
       y[0] += 10;
index 5da0e903b66577342c370db9de0020b3dee871e7..835cec17da944f2e9d5ac29188be29c0601da314 100644 (file)
@@ -18,9 +18,9 @@ foo (S &x, S *&y, int n, int v)
       w[i].c[0] = u[i].c[0] = 0;
       w[i].c[1] = u[i].c[1] = 0;
     }
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a++;
       x.b++;
@@ -35,7 +35,7 @@ foo (S &x, S *&y, int n, int v)
       w[1].a += 6;
       w[1].b += 16;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a += 4;
       x.b += 14;
@@ -50,7 +50,7 @@ foo (S &x, S *&y, int n, int v)
       w[2].a += 7;
       w[2].b += 17;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x.a += 9;
       x.b += 19;
@@ -101,9 +101,9 @@ bar (S &x, S *&y, int n, int v)
       w[i].c[1] = u[i].c[1] = 0;
     }
   #pragma omp parallel master
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a++;
       x.b++;
@@ -118,7 +118,7 @@ bar (S &x, S *&y, int n, int v)
       w[1].a += 6;
       w[1].b += 16;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a += 4;
       x.b += 14;
@@ -133,7 +133,7 @@ bar (S &x, S *&y, int n, int v)
       w[2].a += 7;
       w[2].b += 17;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x.a += 9;
       x.b += 19;
index 6eb0d0bb1dbea95bd15f6aa7e8578f1685901af4..8c39abe80e112f7e42e04b82fe3a4cbedf1ce7f4 100644 (file)
@@ -56,12 +56,12 @@ int main (void)
 
   int val = 1;
   int &valref = val;
-  #pragma omp target enter data map(alloc: data1[:N], data2[:N])
+  #pragma omp target enter data map(alloc: data1[ :N], data2[ :N])
 
   omp_target_loop (0, N, [=](int i) { data1[i] = val; });
   omp_target_loop (0, N, [=](int i) { data2[i] = valref + 1; });
 
-  #pragma omp target update from(data1[:N], data2[:N])
+  #pragma omp target update from(data1[ :N], data2[ :N])
 
   for (int i = 0; i < N; i++)
     {
@@ -69,7 +69,7 @@ int main (void)
       if (data2[i] != 2) abort ();
     }
 
-  #pragma omp target exit data map(delete: data1[:N], data2[:N])
+  #pragma omp target exit data map(delete: data1[ :N], data2[ :N])
 
   int b = 8;
   S s = { 4, N, data1 };
@@ -77,13 +77,13 @@ int main (void)
 
   if (f ()) abort ();
 
-  #pragma omp target enter data map(to: data1[:N])
+  #pragma omp target enter data map(to: data1[ :N])
   if (f ()) abort ();
 
-  #pragma omp target enter data map(to: data2[:N])
+  #pragma omp target enter data map(to: data2[ :N])
   if (!f () && !shared_mem) abort ();
 
-  #pragma omp target exit data map(from: data1[:N], data2[:N])
+  #pragma omp target exit data map(from: data1[ :N], data2[ :N])
 
   if (!shared_mem)
   for (int i = 0; i < N; i++)
index 6be8426bd3e0cffaa9f08907ecb3d6cf92f6021d..6531acd970ddbbc4ba29173a15cf2c36cbc9a8f7 100644 (file)
@@ -52,12 +52,12 @@ void run (int dev)
                     && omp_target_is_present (data2, dev));
   int val = 1;
   int &valref = val;
-  #pragma omp target enter data map(alloc: data1[:N], data2[:N]) device(dev)
+  #pragma omp target enter data map(alloc: data1[ :N], data2[ :N]) device(dev)
 
   omp_target_loop (0, N, [=](int i) { data1[i] = val; }, dev);
   omp_target_loop (0, N, [=](int i) { data2[i] = valref + 1; }, dev);
 
-  #pragma omp target update from(data1[:N], data2[:N]) device(dev)
+  #pragma omp target update from(data1[ :N], data2[ :N]) device(dev)
 
   for (int i = 0; i < N; i++)
     {
@@ -65,20 +65,20 @@ void run (int dev)
       if (data2[i] != 2) abort ();
     }
 
-  #pragma omp target exit data map(delete: data1[:N], data2[:N]) device(dev)
+  #pragma omp target exit data map(delete: data1[ :N], data2[ :N]) device(dev)
 
   int b = 8;
   S s = { 4, N, data1 };
   auto f = s.merge_data_func (data2, b, dev);
   if (f () ^ shared_mem) abort ();
 
-  #pragma omp target enter data map(to: data1[:N]) device(dev)
+  #pragma omp target enter data map(to: data1[ :N]) device(dev)
   if (f () ^ shared_mem) abort ();
 
-  #pragma omp target enter data map(to: data2[:N]) device(dev)
+  #pragma omp target enter data map(to: data2[ :N]) device(dev)
   if (!f ()) abort ();
 
-  #pragma omp target exit data map(from: data1[:N], data2[:N]) device(dev)
+  #pragma omp target exit data map(from: data1[ :N], data2[ :N]) device(dev)
 
   for (int i = 0; i < N; i++)
     {
index ad4802d2766ac4040f26fbb2c841529e36634ca9..bf11a97ca37931acb2e57bab57d45abba9c884f6 100644 (file)
@@ -30,7 +30,7 @@ test_map_tofrom_class_heap ()
   int *array = new int[N];
   A *obj = new A (array, N);
 
-  #pragma omp target map(from: array[:N]) map(tofrom: obj[:1])
+  #pragma omp target map(from: array[ :N]) map(tofrom: obj[ :1])
     {
       int *tmp_h_array = obj->h_array;
       obj->h_array = array;
@@ -64,7 +64,7 @@ test_map_tofrom_class_stack ()
   int array[N];
   A obj(array, N);
 
-  #pragma omp target map(from: array[:N]) map(tofrom: obj)
+  #pragma omp target map(from: array[ :N]) map(tofrom: obj)
     {
       int *tmp_h_array = obj.h_array;
       obj.h_array = array;
index c42105a65ed633fcd1d3fb273360916c388328ce..ee5e094c6943d1e488428c569d034f52045eb068 100644 (file)
@@ -34,7 +34,7 @@ int main (void)
   init (data);
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: arr)
+  #pragma omp target data map (to: data[ :N]) map (alloc: arr)
 #endif
     {
       #pragma omp target
index 4fcce9321728a928ffdc3c6ccc546f1b22a5c3bd..9dc941d86938fd0bb9b7d477196a88f18a4dfc20 100644 (file)
@@ -41,7 +41,7 @@ int main (void)
   init (data);
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: _set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _set)
 #endif
     {
       #pragma omp target
index 9c2d6fa57b41a30fdd7c05cc234d832964835ca9..d8c929997a545e55e165930ad7585e47c51b3884 100644 (file)
@@ -39,7 +39,7 @@ int main (void)
 #endif
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: _deque)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _deque)
 #endif
     {
 #ifndef MEM_SHARED
index 8a3082cceda1ae258b3d2217a0389f1e6be7d8ae..958b75e720925d0993c151ebd80d365d88a4c25c 100644 (file)
@@ -39,7 +39,7 @@ int main (void)
   init (keys, true);
   init (data, false);
 
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 
   #pragma omp target
     {
index 0a1377d13c7287484d82673b6f3c187c9f69dba0..cee63236750c69029ecb8de6c7bd69a404a2b3ee 100644 (file)
@@ -33,7 +33,7 @@ int main (void)
   init (keys, KEY_MAX);
   init (data, RAND_MAX);
 
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 
   #pragma omp target
     {
index 59b59bff69469cc1c28f1a560226aeb65c373012..13d2ff921d054a0d34b740d25e0c99c021d3ce18 100644 (file)
@@ -34,7 +34,7 @@ int main (void)
   srand (time (NULL));
   init (data);
 
-  #pragma omp target data map (to: data[:N]) map (alloc: set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: set)
     {
       #pragma omp target
        {
index b255cd5dca60835ddd01fcc08dc2f48cd180f2d5..0f4a1a8e374f05e565029d91430a1556e6da4fb4 100644 (file)
@@ -40,7 +40,7 @@ int main (void)
   srand (time (NULL));
   init (data);
 
-  #pragma omp target data map (to: data[:N]) map (alloc: _set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _set)
     {
       #pragma omp target
        {
index 6b0ee65493e290ad9580d7cdb073580c0301f4d4..4a98e4734fbb72dfc1c298420d05f3ad45cad2be 100644 (file)
@@ -44,7 +44,7 @@ int main (void)
 #endif
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: list)
+  #pragma omp target data map (to: data[ :N]) map (alloc: list)
 #endif
     {
 #ifndef MEM_SHARED
index 1f44a17ca09115634b6a716dfd87304cc7340c76..bede83920350fb237352870dd39edc12f6d7c64b 100644 (file)
@@ -44,7 +44,7 @@ int main (void)
 #endif
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: _list)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _list)
 #endif
     {
 #ifndef MEM_SHARED
index 36556ef0660a10b49ece43cd35cafb16e1ae4c3b..c54acea1d25488c73a39a4fa0fe9a7afa8e90f64 100644 (file)
@@ -39,7 +39,7 @@ int main (void)
   init (data, false);
 
 #ifndef MEM_SHARED
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 #endif
 
   #pragma omp target
index 8dbc912868a02fd51b5f247dd4a744891ffab30b..34518a5a0e3d7f6d33e13eb4770ed3b68021affc 100644 (file)
@@ -34,7 +34,7 @@ int main (void)
   init (data, RAND_MAX);
 
 #ifndef MEM_SHARED
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 #endif
 
   #pragma omp target
index b12402e8e0c3a71df70b5eeb69e19bfad8e26100..bace4201cb1fc36380538874e7153a687987598d 100644 (file)
@@ -35,7 +35,7 @@ int main (void)
   init (data);
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: set)
 #endif
     {
       #pragma omp target
index cd23128a652f96350ca2309a9a6beafc1d99c94f..4559778efd74175d98533179f0fbf394cfd06518 100644 (file)
@@ -40,7 +40,7 @@ int main (void)
   init (data);
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: _set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _set)
 #endif
     {
       #pragma omp target
index 046b3c1a0868ecafe015df65277cb11b31996129..d6186f76ac57b76fa30215757de2ec74e225faea 100644 (file)
@@ -35,7 +35,7 @@ int main (void)
   init (data);
 
 #ifndef MEM_SHARED
-  #pragma omp target enter data map (to: data[:N]) map (alloc: elements, span)
+  #pragma omp target enter data map (to: data[ :N]) map (alloc: elements, span)
 #endif
 
   #pragma omp target
index 00d794310aa359258e87bafebce1e55c2081f447..3b259c4a1415ddb3fda984a973cd6b9c9041a81f 100644 (file)
@@ -38,7 +38,7 @@ int main (void)
   init (keys, true);
   init (data, false);
 
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 
   #pragma omp target
     {
index 2567634bcda9702b0e38a5c1c116f51f81b0bf2f..d36d95d4944064cffcebc105f6d7b31a66cc54e5 100644 (file)
@@ -32,7 +32,7 @@ int main (void)
   init (keys, KEY_MAX);
   init (data, RAND_MAX);
 
-  #pragma omp target enter data map (to: keys[:N], data[:N]) map (alloc: _map)
+  #pragma omp target enter data map (to: keys[ :N], data[ :N]) map (alloc: _map)
 
   #pragma omp target
     {
index da6c8755abead71438312ad067577ce23cc87bf3..3a3df2203fde1e831ef10d62a294e2dbe1059e5b 100644 (file)
@@ -33,7 +33,7 @@ int main (void)
   srand (time (NULL));
   init (data);
 
-  #pragma omp target data map (to: data[:N]) map (alloc: set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: set)
     {
       #pragma omp target
        {
index b7bd935748f5a1212e858c52dfa9b19e03848942..ca38d33a0504f39e708aedf6703220c6d895d2ad 100644 (file)
@@ -39,7 +39,7 @@ int main (void)
   srand (time (NULL));
   init (data);
 
-  #pragma omp target data map (to: data[:N]) map (alloc: _set)
+  #pragma omp target data map (to: data[ :N]) map (alloc: _set)
     {
       #pragma omp target
        {
index 865cde2e66b1fb48d6c6f581c6d60582c0b28f19..9a77fb256bf4fbd7666f0c45ccdc1664a8697591 100644 (file)
@@ -56,9 +56,9 @@ int main()
   size_t shiftData_i_size = shiftData_i.size();
 #pragma omp target \
   defaultmap(none) \
-  map(to: v1_i_data[:v1_i_size], v1_i_size, \
-          v2_i_data[:v2_i_size], v2_i_size, \
-          shiftData_i_data[:shiftData_i_size], shiftData_i_size)
+  map(to: v1_i_data[ :v1_i_size], v1_i_size, \
+          v2_i_data[ :v2_i_size], v2_i_size, \
+          shiftData_i_data[ :shiftData_i_size], shiftData_i_size)
   {
     /* Manually set up a buffer we can stream into, similar to 'cout << [...]', and print it at the end of region.  */
     std::stringbuf out_b;
index 8933072bb2b24bf1a34f4f885ad5ace60b82b823..81eebe83e0378f5a2b198f24ed8629e706331293 100644 (file)
@@ -38,7 +38,7 @@ int main (void)
 #endif
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: arr)
+  #pragma omp target data map (to: data[ :N]) map (alloc: arr)
 #endif
     {
       #pragma omp target
index a94b4cfe9645861ec26bc80ff12826ba6318bc4a..d728194eb68aa2539ddbf502552cdf620870d7b7 100644 (file)
@@ -38,7 +38,7 @@ int main (void)
 #endif
 
 #ifndef MEM_SHARED
-  #pragma omp target data map (to: data[:N]) map (alloc: vec)
+  #pragma omp target data map (to: data[ :N]) map (alloc: vec)
 #endif
     {
 #ifndef MEM_SHARED
index 986582430e24b76cc7fdaaadc7fec5e323c3d96e..65b4cdc96cee6b8f8aa43c3e8419a23c8517fbe6 100644 (file)
@@ -74,7 +74,7 @@ int main (void)
     if (ptr2[i] != 0)
       abort ();
 
-  #pragma omp target data map(ptr1[:N])
+  #pragma omp target data map(ptr1[ :N])
   mapped = s.set_ptr (val);
 
   if (!mapped)
@@ -87,7 +87,7 @@ int main (void)
     if (ptr1[i] != val)
       abort ();
 
-  #pragma omp target data map(ptr2[:N])
+  #pragma omp target data map(ptr2[ :N])
   mapped = s.set_refptr (val);
 
   if (!mapped)
index b2a593d03afaa28815ab6a642fb4b4d98fc709b1..8f164448a0f37dd713e092ff3c7c3e30b7fe2870 100644 (file)
@@ -83,7 +83,7 @@ int main (void)
     if (ptr2[i] != 0)
       abort ();
 
-  #pragma omp target data map(ptr1[:N], ptr2[:N])
+  #pragma omp target data map(ptr1[ :N], ptr2[ :N])
   {
     if (!p1 ())
       abort ();
index a6ac30e7cf0a63c1d6d50c935da3835a0739bf1d..7b09f8fdc61f2222c0c26e05fa80ae98ecc3bf0e 100644 (file)
@@ -15,7 +15,7 @@ struct derived : public base {
     void do_work ()
     {
       int error = 0;
-      #pragma omp target map (tofrom: this[:1], error)
+      #pragma omp target map (tofrom: this[ :1], error)
       {
        if (scalar != 42 || this->array[0] != 123 || array[4] != 555)
          error = 1;
index 542bdd64da1c000f9992a05bff264faff865adfc..faa199afd2de86cc45d2568f443dc5d54f99b6d5 100644 (file)
@@ -25,10 +25,10 @@ foo (T &n, T *&c, long long int *&d, T (&m)[3], T *&r, T (&o)[4], T *&p, T (&q)[
 {
   T i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -84,15 +84,15 @@ test (T &n)
     T (&o)[4] = os;
     #pragma omp parallel reduction (task,+: a, c) reduction (task,*: b[2 * n:3 * n], d) \
                         reduction (task,+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (task,+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (task,*: t[2:2][:], s[1:n + 1])
+                        reduction (task,+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (task,*: t[2:2][ : ], s[1:n + 1])
     {
       #pragma omp for
       for (int i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          T j;
          a[0] += 2;
@@ -110,11 +110,11 @@ test (T &n)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index 02c1a787cbf41e096bf0f5235c29eb8fd56633ee..8b1f31e03300f3b12f178c21e55cc823949a0cae 100644 (file)
@@ -62,10 +62,10 @@ foo (int n, S *c, S *d, S m[3], S *r, S o[4], S *p, S q[4][2])
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -129,15 +129,15 @@ test (int n)
     S o[4] = { { 1, 7 }, { 0, 7 }, { 0, 7 }, { 2, 7 } };
     #pragma omp parallel reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                         reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (task, *: t[2:2][:], s[1:n + 1])
+                        reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (task, *: t[2:2][ : ], s[1:n + 1])
     {
       #pragma omp for
       for (int i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0].s += 2;
@@ -170,11 +170,11 @@ test (int n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index 3d0165dfa92f87b73d19343b259bd88f2a0e7e3d..596bcea4313d69e8f40e5cef9827d6c842bb22fd 100644 (file)
@@ -71,10 +71,10 @@ foo (T &n, S *&c, S *&d, S (&m)[3], S *&r, S (&o)[4], S *&p, S (&q)[4][2])
 {
   T i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -145,15 +145,15 @@ test (T &n)
     S (&o)[4] = os;
     #pragma omp parallel reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                         reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (task, *: t[2:2][:], s[1:n + 1])
+                        reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (task, *: t[2:2][ : ], s[1:n + 1])
     {
       #pragma omp for
       for (T i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          T j;
          a[0].s += 2;
@@ -186,11 +186,11 @@ test (T &n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index c00c8e46542e6406fd486129cd60ccc5705ebbaa..5a2b1e332a4b62f68d3460e68beb8fff2bd61ac5 100644 (file)
@@ -25,10 +25,10 @@ foo (T &n, T *&c, long long int *&d, T (&m)[3], T *&r, T (&o)[4], T *&p, T (&q)[
 {
   T i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -86,13 +86,13 @@ test (T &n, I x, I y)
     {
       #pragma omp for reduction (task,+: a, c) reduction (task,*: b[2 * n:3 * n], d) \
                      reduction (task,+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                     reduction (task,+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                     reduction (task,*: t[2:2][:], s[1:n + 1]) schedule (dynamic)
+                     reduction (task,+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                     reduction (task,*: t[2:2][ : ], s[1:n + 1]) schedule (dynamic)
       for (I i = x; i != y; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          T j;
          a[0] += 2;
@@ -110,11 +110,11 @@ test (T &n, I x, I y)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index 99c0e3727d430d9d7b7e1b36d037003ae21d12b3..68ca151df83ea47529489211095a37061f3cd75c 100644 (file)
@@ -62,10 +62,10 @@ foo (int n, S *c, S *d, S m[3], S *r, S o[4], S *p, S q[4][2])
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -134,14 +134,14 @@ test (int n)
     {
       #pragma omp for reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                      reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                     reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                     reduction (task, *: t[2:2][:], s[1:n + 1]) \
+                     reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                     reduction (task, *: t[2:2][ : ], s[1:n + 1]) \
                      schedule (nonmonotonic: guided, 1)
       for (unsigned long long i = x; i < y; i += z)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0].s += 2;
@@ -174,11 +174,11 @@ test (int n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index 15945c57cc247de15e1f269ee52b81c238577370..baed72a35129a39e2b31ef54d16ab8bd368037dc 100644 (file)
@@ -71,10 +71,10 @@ foo (T &n, S *&c, S *&d, S (&m)[3], S *&r, S (&o)[4], S *&p, S (&q)[4][2])
 {
   T i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -147,14 +147,14 @@ test (T &n)
     {
       #pragma omp for reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                      reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                     reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                     reduction (task, *: t[2:2][:], s[1:n + 1]) \
+                     reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                     reduction (task, *: t[2:2][ : ], s[1:n + 1]) \
                      schedule (monotonic: runtime)
       for (T i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          T j;
          a[0].s += 2;
@@ -187,11 +187,11 @@ test (T &n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index 1d4da79b3c12214a001ee514f4639651c8a4438b..0edc9657ce06d3bdaadfced435a0a967d91ef188 100644 (file)
@@ -25,10 +25,10 @@ foo (T &n, T *&c, long long int *&d, T (&m)[3], T *&r, T (&o)[4], T *&p, T (&q)[
 {
   T i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -85,15 +85,15 @@ test (T &n)
     T (&o)[4] = os;
     #pragma omp taskgroup task_reduction (+: a, c) task_reduction (*: b[2 * n:3 * n], d) \
                          task_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                         task_reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                         task_reduction (*: t[2:2][:], s[1:n + 1])
+                         task_reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                         task_reduction (*: t[2:2][ : ], s[1:n + 1])
     {
       T i;
       for (i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          T j;
          a[0] += 2;
@@ -111,11 +111,11 @@ test (T &n)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index 59583f15c82672c8ce8cc76952b88cc6de629abd..296bf9dcfd05a30fb676f991825e0896966ced84 100644 (file)
@@ -61,10 +61,10 @@ foo (int n, S *c, S *d, S m[3], S *r, S o[4], S *p, S q[4][2])
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -128,15 +128,15 @@ test (int n)
     S o[4] = { { 1, 7 }, { 0, 7 }, { 0, 7 }, { 2, 7 } };
     #pragma omp taskgroup task_reduction (+: a, c) task_reduction (*: b[2 * n:3 * n], d) \
                          task_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                         task_reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                         task_reduction (*: t[2:2][:], s[1:n + 1])
+                         task_reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                         task_reduction (*: t[2:2][ : ], s[1:n + 1])
     {
       int i;
       for (i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0].s += 2;
@@ -169,11 +169,11 @@ test (int n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index d7f69da219b069d1cdcc840c015f4a2c2ad5fe6e..a1dfc87d4534b35a3c255346f977804e4aa5c4a9 100644 (file)
@@ -70,10 +70,10 @@ foo (int &n, S *&c, S *&d, S (&m)[3], S *&r, S (&o)[4], S *&p, S (&q)[4][2])
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0].s += 7;
       a[1].s += 17;
@@ -144,15 +144,15 @@ test (int &n)
     S (&o)[4] = os;
     #pragma omp taskgroup task_reduction (+: a, c) task_reduction (*: b[2 * n:3 * n], d) \
                          task_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                         task_reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                         task_reduction (*: t[2:2][:], s[1:n + 1])
+                         task_reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                         task_reduction (*: t[2:2][ : ], s[1:n + 1])
     {
       int i;
       for (i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0].s += 2;
@@ -185,11 +185,11 @@ test (int &n)
            if (b[z + 2].t != 5 && b[z + 2].t != 9)
              abort ();
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1].s += 6;
              r[2].s += 7;
index 2a4d82ef77bb6b055a6765c519597a20b03136b4..72afa5cd7d174313190d819ed5e07ed21d756321 100644 (file)
@@ -4,7 +4,7 @@ extern "C" void abort ();
 void
 bar (int *a, int *b, int *c, int (*d)[2], int (*e)[4], int *f, int *g, size_t n)
 {
-  #pragma omp task in_reduction (*: a[:n], b[3:n], c[n:n], d[0][:n], e[0][1:n], f[:n], g[1:n])
+  #pragma omp task in_reduction (*: a[ :n], b[3:n], c[n:n], d[0][ :n], e[0][1:n], f[ :n], g[1:n])
   {
     a[0] *= 12;
     a[1] *= 13;
@@ -43,10 +43,10 @@ foo (size_t n, void *x, void *y)
       f[i] = 1;
       g[i + 1] = 1;
     }
-  #pragma omp taskgroup task_reduction (*: a, b[3:n], c[n:n], d[0][:n], e[0][1:n], f, g[1:n])
+  #pragma omp taskgroup task_reduction (*: a, b[3:n], c[n:n], d[0][ :n], e[0][1:n], f, g[1:n])
   {
     bar (a, b, c, (int (*)[2]) d, (int (*)[4]) e, &f[0], &g[0], n);
-    #pragma omp task in_reduction (*: a, b[3:n], c[n:n], d[0][:n], e[0][1:n], f, g[1:n])
+    #pragma omp task in_reduction (*: a, b[3:n], c[n:n], d[0][ :n], e[0][1:n], f, g[1:n])
     {
       a[0] *= 2;
       a[1] *= 3;
@@ -98,10 +98,10 @@ baz (size_t n, void *x, void *y)
   {
     int (&f)[n] = fb;
     int (&g)[n * 2] = gb;
-    #pragma omp taskgroup task_reduction (*: a, b[3:n], c[n:n], d[0][:n], e[0][1:n], f, g[1:n])
+    #pragma omp taskgroup task_reduction (*: a, b[3:n], c[n:n], d[0][ :n], e[0][1:n], f, g[1:n])
     {
       bar (a, b, c, (int (*)[2]) d, (int (*)[4]) e, &f[0], &g[0], n);
-      #pragma omp task in_reduction (*: a, b[3:n], c[n:n], d[0][:n], e[0][1:n], f, g[1:n])
+      #pragma omp task in_reduction (*: a, b[3:n], c[n:n], d[0][ :n], e[0][1:n], f, g[1:n])
       {
        a[0] *= 2;
        a[1] *= 3;
index f1de5dae2ea269d48b46e63628fd0ee8510ba34e..698fb2368c21cb61894c5013c51d6e5947e2a386 100644 (file)
@@ -38,10 +38,10 @@ foo (int &n, int *&c, long long int *&d, int (&m)[3], int *&r, int (&o)[4], int
   int i;
   U u;
   u.u[2] = 8;
-  #pragma omp taskloop in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                      in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                      in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                      in_reduction (*: s[1:2], t[2:2][:]) firstprivate (u) nogroup
+  #pragma omp taskloop in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                      in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                      in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                      in_reduction (*: s[1:2], t[2:2][ : ]) firstprivate (u) nogroup
   for (i = 0; i < 2; i++)
     {
       a[0] += 7;
@@ -103,8 +103,8 @@ test (int &n)
     int i;
     #pragma omp taskloop reduction (+: a, c) reduction (*: b[2 * n:3 * n], d) \
                         reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (*: t[2:2][:], s[1:n + 1]) firstprivate (u)
+                        reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (*: t[2:2][ : ], s[1:n + 1]) firstprivate (u)
     for (i = 0; i < 4; i++)
       {
        int j;
@@ -125,11 +125,11 @@ test (int &n)
        if (u.u[2] != 10)
          abort ();
        for (j = 0; j < 2; j++)
-         #pragma omp task in_reduction (+: a, c[:2]) \
+         #pragma omp task in_reduction (+: a, c[ :2]) \
                           in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                          in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                          in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                          in_reduction (*: s[n:2], t[2:2][:]) firstprivate (u)
+                          in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                          in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                          in_reduction (*: s[n:2], t[2:2][ : ]) firstprivate (u)
          {
            m[1] += 6;
            r[2] += 7;
index 0588e4744f95951bde1b41ce932bcbdb531dd371..04b7d1b34bc4c243fd8c70013fccb68c58dd69b6 100644 (file)
@@ -60,10 +60,10 @@ void
 foo (int n, S *c, S *d, S m[3], S *r, S o[4], S *p, S q[4][2])
 {
   int i;
-  #pragma omp taskloop in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                      in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                      in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                      in_reduction (*: s[1:2], t[2:2][:]) nogroup
+  #pragma omp taskloop in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                      in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                      in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                      in_reduction (*: s[1:2], t[2:2][ : ]) nogroup
   for (i = 0; i < 2; i++)
     {
       a[0].s += 7;
@@ -129,8 +129,8 @@ test (int n)
     int i;
     #pragma omp taskloop reduction (+: a, c) reduction (*: b[2 * n:3 * n], d) \
                         reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (*: t[2:2][:], s[1:n + 1])
+                        reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (*: t[2:2][ : ], s[1:n + 1])
     for (i = 0; i < 4; i++)
       {
        int j;
@@ -163,11 +163,11 @@ test (int n)
        for (int z = 0; z < 3; z++)
          if (b[z + 2].t != 5 && b[z + 2].t != 9)
            abort ();
-       #pragma omp taskloop in_reduction (+: a, c[:2]) \
+       #pragma omp taskloop in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:]) nogroup
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ]) nogroup
        for (j = 0; j < 2; j++)
          {
            m[1].s += 6;
index 41c7040ff1a678a1da03b54b1e1b755c3b405916..4afb05cd50721e8395028d695bf11efd55aef8bf 100644 (file)
@@ -61,10 +61,10 @@ void
 foo (int n, S *c, S *d, S m[3], S *r, S o[4], S *p, S q[4][2])
 {
   int i;
-  #pragma omp taskloop in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                      reduction (default, +: o[n:n*2], m[1], p[0]) in_reduction (+: k[1:2][:], f[2:2]) \
-                      reduction (+: q[1:2][:], r[2:2]) in_reduction (+: g[n:n*2], e[1], h[0]) \
-                      in_reduction (*: s[1:2], t[2:2][:])
+  #pragma omp taskloop in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                      reduction (default, +: o[n:n*2], m[1], p[0]) in_reduction (+: k[1:2][ : ], f[2:2]) \
+                      reduction (+: q[1:2][ : ], r[2:2]) in_reduction (+: g[n:n*2], e[1], h[0]) \
+                      in_reduction (*: s[1:2], t[2:2][ : ])
   for (i = 0; i < 2; i++)
     {
       a[0].s += 7;
@@ -131,8 +131,8 @@ test (int n)
     int i;
     #pragma omp taskloop reduction (+: a, c) reduction (default, *: b[2 * n:3 * n], d) \
                         reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (*: t[2:2][:], s[1:n + 1])
+                        reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (*: t[2:2][ : ], s[1:n + 1])
     for (i = 0; i < 4; i++)
       {
        int j;
@@ -165,11 +165,11 @@ test (int n)
        for (int z = 0; z < 3; z++)
          if (b[z + 2].t != 5 && b[z + 2].t != 9)
            abort ();
-       #pragma omp taskloop in_reduction (+: a, c[:2]) \
+       #pragma omp taskloop in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:]) nogroup
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ]) nogroup
        for (j = 0; j < 2; j++)
          {
            m[1].s += 6;
index d3af3b8170e4864e20542648a410cceb87df7189..2e6b22e8781aa2af3c370e12bcfc9ba52cc906b2 100644 (file)
@@ -126,7 +126,7 @@ foo (int x, int *p, int *q, int px, omp_allocator_handle_t h, int fl)
        if ((fl & 2) && (((uintptr_t) &i5) & 63) != 0)
          abort ();
       }
-    #pragma omp for reduction(+:p[2:px], q[:3], r2) allocate(h: p, q, r2)
+    #pragma omp for reduction(+:p[2:px], q[ :3], r2) allocate(h: p, q, r2)
     for (i = 0; i < 32; i++)
       {
        p[2] += i;
index 0b507448e2926e67749d8454d280aa2174aceb6b..373064ee3cb60399468c26b1f315741fd4bbc6c1 100644 (file)
@@ -148,7 +148,7 @@ foo (int x, int *p, int *q, int px, omp_allocator_handle_t h, int fl)
        if ((((uintptr_t) &i5) & 31) != 0)
          abort ();
       }
-    #pragma omp for reduction(+:p[2:px], q[:3], r2) allocate(align (16), allocator (h): p, q, r2)
+    #pragma omp for reduction(+:p[2:px], q[ :3], r2) allocate(align (16), allocator (h): p, q, r2)
     for (i = 0; i < 32; i++)
       {
        p[2] += i;
index e335d7da9669db30e0df293a49961a19eba634f5..d8ee3d1ae3eb8e8dd08cb9b2919a9cc637ccd78b 100644 (file)
@@ -39,7 +39,7 @@ int main (int argc, char *argv[])
 
 #pragma omp target map(to: p->b, p->b[0], p->c, p->c[0], p->b->c, p->b->c[0]) \
                   map(to: p->b->c->ptr, p->c->ptr) \
-                  map(tofrom: p->b->c->ptr[:N], p->c->ptr[:N])
+                  map(tofrom: p->b->c->ptr[ :N], p->c->ptr[ :N])
   {
     for (int i = 0; i < N; i++)
       {
index 0efc075a8596d4a32c0c139fc676888c1d8679c1..ab11303d35c55c51e2d022318e96fec8d9f502ef 100644 (file)
@@ -45,7 +45,7 @@ int test (int n)
     }
 
   int f, last_dev = omp_get_num_devices () - 1;
-#pragma omp target data map(to: av[:n]) map(from: d_bv[:n]) device(last_dev) if (n == 1024)
+#pragma omp target data map(to: av[ :n]) map(from: d_bv[ :n]) device(last_dev) if (n == 1024)
   {
     #pragma omp dispatch nocontext(n > 1024) novariants(n < 1024) device(last_dev)
     f = foo (d_bv, av, n);
index faa0d8a1d1c1967d7baf8a850642f8dea9205a7a..187fc610c6d3ca862a1e25b89377127bf61b3ce2 100644 (file)
@@ -53,7 +53,7 @@ int test (int n)
     }
 
   int f, last_dev = omp_get_num_devices () - 1;
-#pragma omp target data map(to: av[:n]) map(from: d_bv[:n]) device(last_dev) if (n == 1024)
+#pragma omp target data map(to: av[ :n]) map(from: d_bv[ :n]) device(last_dev) if (n == 1024)
   {
     #pragma omp dispatch nocontext(n > 1024) novariants(n < 1024) device(last_dev)
     f = foo (d_bv, av, n);
index a7526dcf41ea9b321a02463ac8de3bf39a226fa1..ab989499a9b558189d9e95082917855054a10cae 100644 (file)
@@ -58,7 +58,7 @@ test_async (const int dev)
      As OpenMP_VV's Issue #863 shows, the overhead is high enough to
      fail even when only doing an atomic integer increment.  */
 
-  #pragma omp target device(dev) map(A) depend(out: A[:N]) nowait
+  #pragma omp target device(dev) map(A) depend(out: A[ :N]) nowait
   for (int i = 0; i < N; i++)
     #pragma omp atomic update
     A[i] += __builtin_sin (2*i*M_PI/N);
@@ -68,11 +68,11 @@ test_async (const int dev)
   if (obj1 == omp_interop_none)
     {
       // Same as below as 'nowait' is ignored.
-      #pragma omp interop destroy(obj1) depend(in: A[:N]) nowait
+      #pragma omp interop destroy(obj1) depend(in: A[ :N]) nowait
     }
   else
     {
-      #pragma omp interop destroy(obj1) depend(in: A[:N])
+      #pragma omp interop destroy(obj1) depend(in: A[ :N])
     }
 
   /* ... this code is only executed once the dependency as been fulfilled.  */
@@ -93,7 +93,7 @@ test_async (const int dev)
 
   /* Integer */
 
-  #pragma omp target device(dev) map(B) depend(out: B[:N]) nowait
+  #pragma omp target device(dev) map(B) depend(out: B[ :N]) nowait
   for (int i = 0; i < N; i++)
     #pragma omp atomic update
     B[i] += 42;
@@ -102,11 +102,11 @@ test_async (const int dev)
   if (obj2 == omp_interop_none)
     {
       // Same as below as 'nowait' is ignored.
-      #pragma omp interop use(obj2) depend(in: B[:N]) nowait
+      #pragma omp interop use(obj2) depend(in: B[ :N]) nowait
     }
   else
     {
-      #pragma omp interop use(obj2) depend(in: B[:N])
+      #pragma omp interop use(obj2) depend(in: B[ :N])
     }
 
   for (int i = 0; i < N; i++)
index c86050e2f9ce109607dcc6d342c2fb19ca78191f..587fb77d97acd53699f695199bf139833537df42 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-do run { target { offload_device } } } */
 /* { dg-additional-options "-Wall -Wno-unknown-pragmas" } */
 
-#define COMMON_DIRECTIVE omp target teams distribute parallel for map(tofrom:result[:dim0 * dim1]) map(to:matrix1[0:dim0 * dim1], matrix2[0:dim0 * dim1])
+#define COMMON_DIRECTIVE omp target teams distribute parallel for map(tofrom:result[ :dim0 * dim1]) map(to:matrix1[0:dim0 * dim1], matrix2[0:dim0 * dim1])
 #define COLLAPSE_1 collapse(1)
 #define COLLAPSE_2 collapse(2)
 #define COLLAPSE_3
index e7deec6e006bc97fd36699524c39df239ed51d81..849dd97e231b1a8ab63d86ccbeef26e1254cfb42 100644 (file)
@@ -21,7 +21,7 @@ int main (void)
   int *ptr = (int *) malloc (sizeof (int) * N);
   int *orig_ptr = ptr;
 
-  #pragma omp target map (ptr, ptr[:N])
+  #pragma omp target map (ptr, ptr[ :N])
   {
     for (int i = 0; i < N; i++)
       ptr[i] = N - i;
@@ -36,7 +36,7 @@ int main (void)
 
   S s = { 0 };
   s.ptr = ptr;
-  #pragma omp target map (s, s.ptr[:N])
+  #pragma omp target map (s, s.ptr[ :N])
   {
     for (int i = 0; i < N; i++)
       s.ptr[i] = i;
@@ -61,7 +61,7 @@ int main (void)
   for (int i = 0; i < N; i++)
     gp[i] = i - 1;
 
-  #pragma omp target map (gp[:N])
+  #pragma omp target map (gp[ :N])
   {
     for (int i = 0; i < N; i++)
       gp[i] += 1;
index 889a4a253ae83fba255bb41aa32a0ea347eeb784..60f938f0d37b3a396571f03b4f5185c6b9365eaf 100644 (file)
@@ -18,10 +18,10 @@ void foo (struct L *l)
       l->m.num_blocks[i] = N;
     }
 
-  #pragma omp target enter data map(to:l[:1])
+  #pragma omp target enter data map(to:l[ :1])
   for (int i = 0; i < N; i++)
     {
-      #pragma omp target enter data map(to:l->m.blocks[i][:l->m.num_blocks[i]])
+      #pragma omp target enter data map(to:l->m.blocks[i][ :l->m.num_blocks[i]])
     }
 
   #pragma omp target
@@ -36,9 +36,9 @@ void foo (struct L *l)
 
   for (int i = 0; i < N; i++)
     {
-      #pragma omp target exit data map(from:l->m.blocks[i][:l->m.num_blocks[i]])
+      #pragma omp target exit data map(from:l->m.blocks[i][ :l->m.num_blocks[i]])
     }
-  #pragma omp target exit data map(from:l[:1])
+  #pragma omp target exit data map(from:l[ :1])
 
 
   for (int i = 0; i < N; i++)
index 5ccd908aa85e333ebfc0641018ffc0efa4bd1753..0dd197b27fdea6081f9f1eb2debd75be1a0de1c6 100644 (file)
@@ -16,7 +16,7 @@ int main (void)
   unsigned char *p = (unsigned char *) &a;
   unsigned char *q = p + 2;
 
-  #pragma omp target enter data map (alloc:p[:1], q[:1])
+  #pragma omp target enter data map (alloc:p[ :1], q[ :1])
 
   if (d != id)
     {
@@ -40,7 +40,7 @@ int main (void)
        abort ();
     }
 
-  #pragma omp target exit data map (from:q[:1])
+  #pragma omp target exit data map (from:q[ :1])
 
   if (d != id)
     {
index 9a23b4fbb811c986fcab1c7aa401c124110637fc..935f7af723cbdbabb2a465519d125228e06413c0 100644 (file)
@@ -20,7 +20,7 @@ int main (void)
 
   int *p = &s.b;
   int *q = &s.d;
-  #pragma omp target enter data map (alloc: p[:1], q[:1])
+  #pragma omp target enter data map (alloc: p[ :1], q[ :1])
 
   s.b = 88;
   s.d = 99;
@@ -36,7 +36,7 @@ int main (void)
        abort ();
     }
 
-  #pragma omp target exit data map (from: q[:1])
+  #pragma omp target exit data map (from: q[ :1])
   if (d != id)
     {
       if (omp_target_is_present (&s, d))
index 0ba766c0a82b20cc72491be2a9cc28a199ccc3c8..6854bb5e7b7315d24d707330ea25d43528c02c07 100644 (file)
@@ -23,7 +23,7 @@ fn2 (int x)
   int i;
   fn1 (b, c, x);
   fn1 (e, d + x, x);
-  #pragma omp target map(to: b, c[:x], d[x:x], e) map(tofrom: s)
+  #pragma omp target map(to: b, c[ :x], d[x:x], e) map(tofrom: s)
     #pragma omp parallel for reduction(+:s)
       for (i = 0; i < x; i++)
        s += b[i] * c[i] + d[x + i] + sizeof (b) - sizeof (c);
@@ -53,10 +53,10 @@ fn4 (int x)
   int i;
   fn1 (b, c, x);
   fn1 (e, d + x, x);
-  #pragma omp target data map(from: b, c[:x], d[x:x], e)
+  #pragma omp target data map(from: b, c[ :x], d[x:x], e)
     {
-      #pragma omp target update to(b, c[:x], d[x:x], e)
-      #pragma omp target map(c[:x], d[x:x], s)
+      #pragma omp target update to(b, c[ :x], d[x:x], e)
+      #pragma omp target map(c[ :x], d[x:x], s)
        #pragma omp parallel for reduction(+:s)
          for (i = 0; i < x; i++)
            {
index fcc5c9e85534fb9d26b70c434acd52827c202529..119f0f21f0aa7b8cd791dc2f5a8b9379bbe81c76 100644 (file)
@@ -26,29 +26,29 @@ main ()
     if (y[i] != i)
       __builtin_abort ();
 
-  #pragma omp target data map(y[:N]) use_device_addr(y)
-    #pragma omp target has_device_addr(y[:N])
+  #pragma omp target data map(y[ :N]) use_device_addr(y)
+    #pragma omp target has_device_addr(y[ :N])
       for (int i = 0; i < N; i++)
        y[i] = i + 2;
   for (int i = 0; i < N; i++)
     if (y[i] != i + 2)
       __builtin_abort ();
 
-  #pragma omp target data map(y[:N]) use_device_addr(y)
+  #pragma omp target data map(y[ :N]) use_device_addr(y)
     #pragma omp target has_device_addr(y[24])
        y[24] = 42;
   if (y[24] != 42)
     __builtin_abort ();
 
-  #pragma omp target data map(y[:N]) use_device_addr(y)
-    #pragma omp target has_device_addr(y[24:])
+  #pragma omp target data map(y[ :N]) use_device_addr(y)
+    #pragma omp target has_device_addr(y[24: ])
       for (int i = 24; i < N; i++)
        y[i] = i + 3;
   for (int i = 24; i < N; i++)
     if (y[i] != i + 3)
       __builtin_abort ();
 
-  #pragma omp target data map(y[:N]) use_device_addr(y)
+  #pragma omp target data map(y[ :N]) use_device_addr(y)
     #pragma omp target has_device_addr(y[12:24])
       for (int i = 12; i < 24; i++)
        y[i] = i + 4;
index 4c49cd091c38df70ce1bbc4fa6e14e91200ec2b7..dd3e45b093ddbf72a9ef893229cf135c2924ffc2 100644 (file)
@@ -18,29 +18,29 @@ main (void)
   for (int i = 0; i < N; i++)
     a.ptr[i] = 0;
 
-  #pragma omp target enter data map(to: a.ptr, a.ptr[:N])
+  #pragma omp target enter data map(to: a.ptr, a.ptr[ :N])
 
   #pragma omp target
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 1)
       abort ();
 
-  #pragma omp target map(a.ptr[:N])
+  #pragma omp target map(a.ptr[ :N])
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 2)
       abort ();
 
-  #pragma omp target exit data map(from:a.ptr, a.ptr[:N])
+  #pragma omp target exit data map(from:a.ptr, a.ptr[ :N])
 
   free (a.ptr);
 
index 81a7752685c59a8ac8721abe237b5e71979abf84..087d20be5e21d914cdfa1037e2a22388b6307c20 100644 (file)
@@ -19,29 +19,29 @@ main (void)
     a.ptr[i] = 0;
 
   #pragma omp target enter data map(to: a.ptr)
-  #pragma omp target enter data map(to: a.ptr[:N])
+  #pragma omp target enter data map(to: a.ptr[ :N])
 
   #pragma omp target
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 1)
       abort ();
 
-  #pragma omp target map(a.ptr[:N])
+  #pragma omp target map(a.ptr[ :N])
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target update from(a.ptr[:N])
+  #pragma omp target update from(a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 2)
       abort ();
 
-  #pragma omp target exit data map(release: a.ptr[:N])
+  #pragma omp target exit data map(release: a.ptr[ :N])
   #pragma omp target exit data map(release: a.ptr)
 
   free (a.ptr);
index 813b5d95d3dd1752cfa44af7d07a0cbd7818bfed..3236cf9f0d06ba959a3112d4f81f32e278d09efa 100644 (file)
@@ -5,9 +5,9 @@ foo (int x, int *y, int n, int v)
   int u[n], w[n], i;
   for (i = 0; i < n; i++)
     w[i] = u[i] = n + i;
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x++;
       y[0] += 2;
@@ -16,7 +16,7 @@ foo (int x, int *y, int n, int v)
       u[0] += 5;
       w[1] += 6;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x += 4;
       y[0] += 5;
@@ -25,7 +25,7 @@ foo (int x, int *y, int n, int v)
       u[1] += 8;
       w[2] += 7;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x += 9;
       y[0] += 10;
@@ -53,9 +53,9 @@ bar (int x, int *y, int n, int v)
   for (i = 0; i < n; i++)
     w[i] = u[i] = n + i;
   #pragma omp parallel master
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x++;
       y[0] += 2;
@@ -64,7 +64,7 @@ bar (int x, int *y, int n, int v)
       u[0] += 5;
       w[1] += 6;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x += 4;
       y[0] += 5;
@@ -73,7 +73,7 @@ bar (int x, int *y, int n, int v)
       u[1] += 8;
       w[2] += 7;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x += 9;
       y[0] += 10;
index dd56965251bd11107245bb0aa2c2ead6784c09e3..7e159728163a26748f76979dfcc6189f31c446fb 100644 (file)
@@ -15,9 +15,9 @@ foo (struct S x, struct S *y, int n, int v)
       w[i].c[0] = u[i].c[0] = 0;
       w[i].c[1] = u[i].c[1] = 0;
     }
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a++;
       x.b++;
@@ -32,7 +32,7 @@ foo (struct S x, struct S *y, int n, int v)
       w[1].a += 6;
       w[1].b += 16;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v]) map(tofrom: x.a, x.b, x.c[:2])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v]) map(tofrom: x.a, x.b, x.c[ :2])
     {
       x.a += 4;
       x.b += 14;
@@ -47,7 +47,7 @@ foo (struct S x, struct S *y, int n, int v)
       w[2].a += 7;
       w[2].b += 17;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x.a += 9;
       x.b += 19;
@@ -95,9 +95,9 @@ bar (struct S x, struct S *y, int n, int v)
       w[i].c[1] = u[i].c[1] = 0;
     }
   #pragma omp parallel master
-  #pragma omp taskgroup task_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+  #pragma omp taskgroup task_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
   {
-    #pragma omp task in_reduction (+: x, y[:2], z[1:2], u, w[1:v])
+    #pragma omp task in_reduction (+: x, y[ :2], z[1:2], u, w[1:v])
     {
       x.a++;
       x.b++;
@@ -112,7 +112,7 @@ bar (struct S x, struct S *y, int n, int v)
       w[1].a += 6;
       w[1].b += 16;
     }
-    #pragma omp target in_reduction (+: x, y[:2], z[1:2], u, w[1:v]) map(tofrom: x.a, x.b, x.c[:2])
+    #pragma omp target in_reduction (+: x, y[ :2], z[1:2], u, w[1:v]) map(tofrom: x.a, x.b, x.c[ :2])
     {
       x.a += 4;
       x.b += 14;
@@ -127,7 +127,7 @@ bar (struct S x, struct S *y, int n, int v)
       w[2].a += 7;
       w[2].b += 17;
     }
-    #pragma omp target in_reduction (+: x, y[:v], z[1:v], u, w[1:2])
+    #pragma omp target in_reduction (+: x, y[ :v], z[1:v], u, w[1:2])
     {
       x.a += 9;
       x.b += 19;
index b3d87f231df1544debe7f5dfe575091fa2918701..af733991eaf5e67fbcfe540f232753b57763b241 100644 (file)
@@ -34,7 +34,7 @@ int main (void)
   int expected = mkarray (x);
 
   #pragma omp target enter data map(to: x)
-  #pragma omp target map(iterator(i=0:DIM1), to: x[i][:DIM2]) \
+  #pragma omp target map(iterator(i=0:DIM1), to: x[i][ :DIM2]) \
                     map(from: y)
     {
       y = 0;
index 8569b55ab5b5ed994d76cba655b529171938f1d4..ba3954d08e342df83273aba4531f7e3c2bbd042e 100644 (file)
@@ -23,7 +23,7 @@ int main (void)
   mkarray (x);
 
   #pragma omp target enter data map(alloc: x)
-  #pragma omp target map(iterator(i=0:DIM1), from: x[i][:DIM2]) \
+  #pragma omp target map(iterator(i=0:DIM1), from: x[i][ :DIM2]) \
                     map(from: expected)
     {
       expected = 0;
index be30fa65d8074ca64d68b507e690c27bf8f4f25d..fc05e0e1bb577bfe68ff61efc784457becae28a9 100644 (file)
@@ -42,8 +42,8 @@ int main (void)
   int expected = mkarrays (x, y);
 
   #pragma omp target enter data map(to: x, y)
-  #pragma omp target map(iterator(i=0:DIM1/4, j=0:4), to: x[f(i, j)][:DIM2]) \
-                    map(iterator(i=0:DIM1), to: y[i][:1]) \
+  #pragma omp target map(iterator(i=0:DIM1/4, j=0:4), to: x[f(i, j)][ :DIM2]) \
+                    map(iterator(i=0:DIM1), to: y[i][ :1]) \
                     map(from: sum)
     {
       sum = 0;
index 1ec0c9a0d5f9ce6cb4b2074380b049119a1f8f45..7ee483042ca38590afacb257d7852b4225bc9c80 100644 (file)
@@ -18,13 +18,13 @@ main (void)
   for (int i = 0; i < N; i++)
     a.ptr[i] = 0;
 
-  #pragma omp target enter data map(to: a.ptr[:N])
+  #pragma omp target enter data map(to: a.ptr[ :N])
 
-  #pragma omp target map(a, a.ptr[:0])
+  #pragma omp target map(a, a.ptr[ :0])
   for (int i = 0; i < N; i++)
     a.ptr[i] += 1;
 
-  #pragma omp target exit data map(from: a.ptr[:N])
+  #pragma omp target exit data map(from: a.ptr[ :N])
 
   for (int i = 0; i < N; i++)
     if (a.ptr[i] != 1)
index 5a4cad5c21958700e0d54e00bb99b0c48900f6c7..239406d5da0e9ae330f9d5f1c5b916d05d0d7d18 100644 (file)
@@ -30,8 +30,8 @@ int main (void)
   int sum;
   int expected = mkarray (x);
 
-  #pragma omp target enter data map(to: x[:DIM1])
-  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][:DIM2])
+  #pragma omp target enter data map(to: x[ :DIM1])
+  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][ :DIM2])
   #pragma omp target map(from: sum)
     {
       sum = 0;
@@ -51,7 +51,7 @@ int main (void)
        expected += x[i][j];
       }
 
-  #pragma omp target update to(iterator(i=0:DIM1): x[i][:DIM2])
+  #pragma omp target update to(iterator(i=0:DIM1): x[i][ :DIM2])
 
   #pragma omp target map(from: sum)
     {
index 93438d01c97e1701ae7be02b5fdccf69a8044da2..c17464c1b3af6636f22cba8b547ad6416503bdd5 100644 (file)
@@ -26,8 +26,8 @@ int main (void)
 
   mkarray (x);
 
-  #pragma omp target enter data map(alloc: x[:DIM1])
-  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][:DIM2])
+  #pragma omp target enter data map(alloc: x[ :DIM1])
+  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][ :DIM2])
   #pragma omp target map(from: expected)
     {
       expected = 0;
@@ -47,7 +47,7 @@ int main (void)
   if (sum != 0)
     return 1;
 
-  #pragma omp target update from(iterator(i=0:DIM1): x[i][:DIM2])
+  #pragma omp target update from(iterator(i=0:DIM1): x[i][ :DIM2])
 
   /* Host copy should now be updated.  */
   sum = 0;
index a70b21c4b75a2ee16fec8ede4d4a9e84d74a16e4..465a1bb4602006c3ee1d53b9769c073ca0920247 100644 (file)
@@ -31,8 +31,8 @@ int main (void)
 
   mkarray (x);
 
-  #pragma omp target enter data map(alloc: x[:DIM1])
-  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][:DIM2])
+  #pragma omp target enter data map(alloc: x[ :DIM1])
+  #pragma omp target enter data map(iterator(i=0:DIM1), to: x[i][ :DIM2])
 
   /* Update x on host.  */
   for (int i = 0; i < DIM1; i++)
@@ -43,7 +43,7 @@ int main (void)
       }
 
   /* Update a subset of x on target.  */
-  #pragma omp target update to(iterator(i=0:DIM1/2): x[f (i)][:DIM2])
+  #pragma omp target update to(iterator(i=0:DIM1/2): x[f (i)][ :DIM2])
 
   #pragma omp target map(from: sum)
     {
index 038b0e269e76620eb5764f6964660c4fbe425ce3..5dce5459cd0fb87efef735380b1f9ca3b7fa7314 100644 (file)
@@ -9,7 +9,7 @@ unsigned long int c[2] = { ~0UL, ~0UL };
 void
 bar (int i)
 {
-  #pragma omp task in_reduction (*: b[:3]) in_reduction (&: c[1:]) \
+  #pragma omp task in_reduction (*: b[ :3]) in_reduction (&: c[1: ]) \
              in_reduction (+: a)
   {
     a += 4;
index 0ad92735ca74ae23a30c831b9a661a698724817f..5a5273ebd893a17512ba7fbbedda4a1d94ae14dc 100644 (file)
@@ -9,7 +9,7 @@ unsigned long int c[2] = { ~0UL, ~0UL };
 void
 bar (int i)
 {
-  #pragma omp task in_reduction (*: b[:3]) in_reduction (&: c[1:]) \
+  #pragma omp task in_reduction (*: b[ :3]) in_reduction (&: c[1: ]) \
              in_reduction (+: a)
   {
     a += 4;
index 44d32c7bc25a7866c6a111707672f8a001bcfd0c..34e0eb465f45ee71f63e398b0706c7c2baa64352 100644 (file)
@@ -9,7 +9,7 @@ unsigned long int c[2] = { ~0UL, ~0UL };
 void
 bar (int i)
 {
-  #pragma omp task in_reduction (*: b[:3]) in_reduction (&: c[1:]) \
+  #pragma omp task in_reduction (*: b[ :3]) in_reduction (&: c[1: ]) \
              in_reduction (+: a)
   {
     a += 4;
index 8a90e86e8470ea8f4bbd7507261d692b70526ad2..a2140cb0c1500163cd0922b2e8ca468cb4613493 100644 (file)
@@ -18,10 +18,10 @@ foo (int n, int *c, long long int *d, int m[3], int *r, int o[4], int *p, int q[
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -70,15 +70,15 @@ test (int n)
     int o[4] = { 1, 0, 0, 2 };
     #pragma omp taskgroup task_reduction (+: a, c) task_reduction (*: b[2 * n:3 * n], d) \
                          task_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                         task_reduction (+: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                         task_reduction (*: t[2:2][:], s[1:n + 1])
+                         task_reduction (+: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                         task_reduction (*: t[2:2][ : ], s[1:n + 1])
     {
       int i;
       for (i = 0; i < 4; i++)
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0] += 2;
@@ -96,11 +96,11 @@ test (int n)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index c656f5ff00bdcf63a9483ea7e37888cd9dd57a2b..0ef7366b22f1b5ee8082ba6db29accde6cf8bb6e 100644 (file)
@@ -18,10 +18,10 @@ foo (int n, int *c, long long int *d, int m[3], int *r, int o[4], int *p, int q[
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -67,17 +67,17 @@ test (int n)
   t = tt;
   #pragma omp parallel reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                       reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                      reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                      reduction (task, *: t[2:2][:], s[1:n + 1]) num_threads(4)
+                      reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                      reduction (task, *: t[2:2][ : ], s[1:n + 1]) num_threads(4)
   {
     int i;
     #pragma omp for
     for (i = 0; i < 4; i++)
       {
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0] += 2;
@@ -95,11 +95,11 @@ test (int n)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index 3d71fef867080fdc0c22417eb3d709698e030177..1938cf3d3f2d4bf112ca46f388f6e9574583ae8d 100644 (file)
@@ -18,10 +18,10 @@ foo (int n, int *c, long long int *d, int m[3], int *r, int o[4], int *p, int q[
 {
   int i;
   for (i = 0; i < 2; i++)
-    #pragma omp task in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                    in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                    in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                    in_reduction (*: s[1:2], t[2:2][:])
+    #pragma omp task in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                    in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                    in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                    in_reduction (*: s[1:2], t[2:2][ : ])
     {
       a[0] += 7;
       a[1] += 17;
@@ -70,15 +70,15 @@ test (int n)
     int i;
     #pragma omp for reduction (task, +: a, c) reduction (task, *: b[2 * n:3 * n], d) \
                    reduction (task, +: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                   reduction (task, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                   reduction (task, *: t[2:2][:], s[1:n + 1]) \
+                   reduction (task, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                   reduction (task, *: t[2:2][ : ], s[1:n + 1]) \
                    schedule(nonmonotonic: runtime)
     for (i = 0; i < 4; i++)
       {
        #pragma omp task in_reduction (+: a, c) in_reduction (*: b[2 * n:3 * n], d) \
-                        in_reduction (+: o[n:n*2], q[1:2][:], p[0], m[1], r[2:2]) \
-                        in_reduction (+: g[n:n * 2], e[1], k[1:2][:], h[0], f[2:2]) \
-                        in_reduction (*: s[1:2], t[2:2][:])
+                        in_reduction (+: o[n:n*2], q[1:2][ : ], p[0], m[1], r[2:2]) \
+                        in_reduction (+: g[n:n * 2], e[1], k[1:2][ : ], h[0], f[2:2]) \
+                        in_reduction (*: s[1:2], t[2:2][ : ])
        {
          int j;
          a[0] += 2;
@@ -96,11 +96,11 @@ test (int n)
          t[2][1] *= 2;
          t[3][1] *= 2;
          for (j = 0; j < 2; j++)
-           #pragma omp task in_reduction (+: a, c[:2]) \
+           #pragma omp task in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:])
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ])
            {
              m[1] += 6;
              r[2] += 7;
index 8fc05dc668e2ae6727d9dbec22e8346bed833301..340c53ee9cf0078b40171c120e9e928b7ea8b7ce 100644 (file)
@@ -17,10 +17,10 @@ void
 foo (int n, int *c, long long int *d, int m[3], int *r, int o[4], int *p, int q[4][2])
 {
   int i;
-  #pragma omp taskloop in_reduction (+: a, c[:2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
-                      in_reduction (+: o[n:n*2], m[1], k[1:2][:], p[0], f[2:2]) \
-                      in_reduction (+: q[1:2][:], g[n:n*2], e[1], h[0], r[2:2]) \
-                      in_reduction (*: s[1:2], t[2:2][:]) nogroup
+  #pragma omp taskloop in_reduction (+: a, c[ :2]) in_reduction (*: b[2 * n:3 * n], d[0:2]) \
+                      in_reduction (+: o[n:n*2], m[1], k[1:2][ : ], p[0], f[2:2]) \
+                      in_reduction (+: q[1:2][ : ], g[n:n*2], e[1], h[0], r[2:2]) \
+                      in_reduction (*: s[1:2], t[2:2][ : ]) nogroup
   for (i = 0; i < 2; i++)
     {
       a[0] += 7;
@@ -71,8 +71,8 @@ test (int n)
     int i;
     #pragma omp taskloop reduction (+: a, c) reduction (default, *: b[2 * n:3 * n], d) \
                         reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][0:2]) \
-                        reduction (default, +: o[n:n*2], m[1], q[1:2][:], p[0], r[2:2]) \
-                        reduction (*: t[2:2][:], s[1:n + 1])
+                        reduction (default, +: o[n:n*2], m[1], q[1:2][ : ], p[0], r[2:2]) \
+                        reduction (*: t[2:2][ : ], s[1:n + 1])
     for (i = 0; i < 4; i++)
       {
        int j;
@@ -90,11 +90,11 @@ test (int n)
        s[1] *= 2;
        t[2][1] *= 2;
        t[3][1] *= 2;
-       #pragma omp taskloop in_reduction (+: a, c[:2]) \
+       #pragma omp taskloop in_reduction (+: a, c[ :2]) \
                             in_reduction (*: b[2 * n:3 * n], d[n - 1:n + 1]) \
-                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][:2]) \
-                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][:2]) \
-                            in_reduction (*: s[n:2], t[2:2][:]) nogroup
+                            in_reduction (+: e[1], f[2:2], g[n:n*2], h[0], k[1:2][ :2]) \
+                            in_reduction (+: m[1], r[2:2], o[n:n*2], p[0], q[1:2][ :2]) \
+                            in_reduction (*: s[n:2], t[2:2][ : ]) nogroup
        for (j = 0; j < 2; j++)
          {
            m[1] += 6;
index c3c21091e9703967edb4c31aad511226ddd29196..f2d0916ed5978c734423bdb1428e82d7baab5ac5 100644 (file)
@@ -19,7 +19,7 @@
    - OMP_NUM_TEAMS(_DEV(_<dev-num>)) overrides it
      OMP_NUM_TEAMS_ALL overrides it
    - Number of teams is:
-     -> the value specific by num_teams([lower:]upper)
+     -> the value specific by num_teams([lower: ]upper)
        with lower := upper if unspecified
      -> Otherwise, if nteams-var ICV > 0, #teams <= nteams-var ICV
      -> Otherwise, if nteams-var ICV <= 0, #teams > 1
index d8d7067e452a30eb9e98d57bbc894b3695897665..071c94688d5f328266b3d5b044acbafc49c9b8f8 100644 (file)
@@ -13,7 +13,7 @@ main ()
   int n = 100, i;
   struct dc v = { .a = 3, .b = (int *) malloc (sizeof (int) * n) };
 
-#pragma acc parallel loop copy(v.a, v.b[:n])
+#pragma acc parallel loop copy(v.a, v.b[ :n])
   for (i = 0; i < n; i++)
     v.b[i] = v.a;
 
index a7308e8c98b95cf7102d0da865796cf2fa2b2ff9..0735eae26cf11a432b8ba35b8dd25a9e2aeff040 100644 (file)
@@ -65,11 +65,11 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(p.m.s2[:1])
-#pragma acc parallel loop copy(p.m.s2->e[:N])
+#pragma acc enter data copyin(p.m.s2[ :1])
+#pragma acc parallel loop copy(p.m.s2->e[ :N])
       for (int j = 0; j < N; j++)
        p.m.s2->e[j]++;
-#pragma acc exit data delete(p.m.s2[:1])
+#pragma acc exit data delete(p.m.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -80,16 +80,16 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(p.m.s2[:1])
-#pragma acc enter data copyin(p.m.s2->f[:1])
-#pragma acc parallel loop copy(p.m.s2->f->a[:N]) copy(p.m.s2->f->c[:N])
+#pragma acc enter data copyin(p.m.s2[ :1])
+#pragma acc enter data copyin(p.m.s2->f[ :1])
+#pragma acc parallel loop copy(p.m.s2->f->a[ :N]) copy(p.m.s2->f->c[ :N])
        for (int j = 0; j < N; j++)
          {
            p.m.s2->f->a[j]++;
            p.m.s2->f->c[j]++;
          }
-#pragma acc exit data delete(p.m.s2->f[:1])
-#pragma acc exit data delete(p.m.s2[:1])
+#pragma acc exit data delete(p.m.s2->f[ :1])
+#pragma acc exit data delete(p.m.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -100,10 +100,10 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(p.m.s2[:1]) copyin(p.n.s2[:1])
-#pragma acc enter data copyin(p.m.s2->f[:1]) copyin(p.n.s2->f[:1])
-#pragma acc parallel loop copy(p.m.s2->f->a[:N]) copy(p.m.s2->f->c[:N]) \
-                         copy(p.n.s2->f->a[:N]) copy(p.n.s2->f->c[:N])
+#pragma acc enter data copyin(p.m.s2[ :1]) copyin(p.n.s2[ :1])
+#pragma acc enter data copyin(p.m.s2->f[ :1]) copyin(p.n.s2->f[ :1])
+#pragma acc parallel loop copy(p.m.s2->f->a[ :N]) copy(p.m.s2->f->c[ :N]) \
+                         copy(p.n.s2->f->a[ :N]) copy(p.n.s2->f->c[ :N])
        for (int j = 0; j < N; j++)
          {
            p.m.s2->f->a[j]++;
@@ -111,8 +111,8 @@ int main (int argc, char* argv[])
            p.n.s2->f->a[j]++;
            p.n.s2->f->c[j]++;
          }
-#pragma acc exit data delete(p.m.s2->f[:1]) delete(p.n.s2->f[:1])
-#pragma acc exit data delete(p.m.s2[:1]) delete(p.n.s2[:1])
+#pragma acc exit data delete(p.m.s2->f[ :1]) delete(p.n.s2->f[ :1])
+#pragma acc exit data delete(p.m.s2[ :1]) delete(p.n.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -124,19 +124,19 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(p.m.s2[:1]) copyin(p.n.s2[:1])
-#pragma acc enter data copyin(p.n.s2->e[:N]) copyin(p.n.s2->f[:1]) \
-                      copyin(p.m.s2->f[:1])
-#pragma acc parallel loop copy(p.m.s2->f->a[:N]) copy(p.n.s2->f->a[:N])
+#pragma acc enter data copyin(p.m.s2[ :1]) copyin(p.n.s2[ :1])
+#pragma acc enter data copyin(p.n.s2->e[ :N]) copyin(p.n.s2->f[ :1]) \
+                      copyin(p.m.s2->f[ :1])
+#pragma acc parallel loop copy(p.m.s2->f->a[ :N]) copy(p.n.s2->f->a[ :N])
        for (int j = 0; j < N; j++)
          {
            p.m.s2->f->a[j]++;
            p.n.s2->f->a[j]++;
            p.n.s2->e[j]++;
          }
-#pragma acc exit data delete(p.m.s2->f[:1]) delete(p.n.s2->f[:1]) \
-                     copyout(p.n.s2->e[:N])
-#pragma acc exit data delete(p.m.s2[:1]) delete(p.n.s2[:1])
+#pragma acc exit data delete(p.m.s2->f[ :1]) delete(p.n.s2->f[ :1]) \
+                     copyout(p.n.s2->e[ :N])
+#pragma acc exit data delete(p.m.s2[ :1]) delete(p.n.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -148,11 +148,11 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(q->m.s2[:1])
-#pragma acc parallel loop copy(q->m.s2->e[:N])
+#pragma acc enter data copyin(q->m.s2[ :1])
+#pragma acc parallel loop copy(q->m.s2->e[ :N])
       for (int j = 0; j < N; j++)
        q->m.s2->e[j]++;
-#pragma acc exit data delete(q->m.s2[:1])
+#pragma acc exit data delete(q->m.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -163,16 +163,16 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(q->m.s2[:1])
-#pragma acc enter data copyin(q->m.s2->f[:1])
-#pragma acc parallel loop copy(q->m.s2->f->a[:N]) copy(q->m.s2->f->c[:N])
+#pragma acc enter data copyin(q->m.s2[ :1])
+#pragma acc enter data copyin(q->m.s2->f[ :1])
+#pragma acc parallel loop copy(q->m.s2->f->a[ :N]) copy(q->m.s2->f->c[ :N])
        for (int j = 0; j < N; j++)
          {
            q->m.s2->f->a[j]++;
            q->m.s2->f->c[j]++;
          }
-#pragma acc exit data delete(q->m.s2->f[:1])
-#pragma acc exit data delete(q->m.s2[:1])
+#pragma acc exit data delete(q->m.s2->f[ :1])
+#pragma acc exit data delete(q->m.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -183,10 +183,10 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(q->m.s2[:1]) copyin(q->n.s2[:1])
-#pragma acc enter data copyin(q->m.s2->f[:1]) copyin(q->n.s2->f[:1])
-#pragma acc parallel loop copy(q->m.s2->f->a[:N]) copy(q->m.s2->f->c[:N]) \
-                         copy(q->n.s2->f->a[:N]) copy(q->n.s2->f->c[:N])
+#pragma acc enter data copyin(q->m.s2[ :1]) copyin(q->n.s2[ :1])
+#pragma acc enter data copyin(q->m.s2->f[ :1]) copyin(q->n.s2->f[ :1])
+#pragma acc parallel loop copy(q->m.s2->f->a[ :N]) copy(q->m.s2->f->c[ :N]) \
+                         copy(q->n.s2->f->a[ :N]) copy(q->n.s2->f->c[ :N])
        for (int j = 0; j < N; j++)
          {
            q->m.s2->f->a[j]++;
@@ -194,8 +194,8 @@ int main (int argc, char* argv[])
            q->n.s2->f->a[j]++;
            q->n.s2->f->c[j]++;
          }
-#pragma acc exit data delete(q->m.s2->f[:1]) delete(q->n.s2->f[:1])
-#pragma acc exit data delete(q->m.s2[:1]) delete(q->n.s2[:1])
+#pragma acc exit data delete(q->m.s2->f[ :1]) delete(q->n.s2->f[ :1])
+#pragma acc exit data delete(q->m.s2[ :1]) delete(q->n.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
@@ -207,19 +207,19 @@ int main (int argc, char* argv[])
 
   for (int i = 0; i < 99; i++)
     {
-#pragma acc enter data copyin(q->m.s2[:1]) copyin(q->n.s2[:1])
-#pragma acc enter data copyin(q->n.s2->e[:N]) copyin(q->m.s2->f[:1]) \
-                      copyin(q->n.s2->f[:1])
-#pragma acc parallel loop copy(q->m.s2->f->a[:N]) copy(q->n.s2->f->a[:N])
+#pragma acc enter data copyin(q->m.s2[ :1]) copyin(q->n.s2[ :1])
+#pragma acc enter data copyin(q->n.s2->e[ :N]) copyin(q->m.s2->f[ :1]) \
+                      copyin(q->n.s2->f[ :1])
+#pragma acc parallel loop copy(q->m.s2->f->a[ :N]) copy(q->n.s2->f->a[ :N])
        for (int j = 0; j < N; j++)
          {
            q->m.s2->f->a[j]++;
            q->n.s2->f->a[j]++;
            q->n.s2->e[j]++;
          }
-#pragma acc exit data delete(q->m.s2->f[:1]) delete(q->n.s2->f[:1]) \
-                     copyout(q->n.s2->e[:N])
-#pragma acc exit data delete(q->m.s2[:1]) delete(q->n.s2[:1])
+#pragma acc exit data delete(q->m.s2->f[ :1]) delete(q->n.s2->f[ :1]) \
+                     copyout(q->n.s2->e[ :N])
+#pragma acc exit data delete(q->m.s2[ :1]) delete(q->n.s2[ :1])
     }
 
   for (i = 0; i < N; i++)
index cec764bd3e7f96a152b1d6d7138a3b8c72cd999b..65950c56943581f3990a19be2f55be7a3e0d960e 100644 (file)
@@ -12,18 +12,18 @@ main ()
   for (i = 0; i < n; i++)
     a[i] = i+1;
 
-#pragma acc enter data copyin(a[:n]) create(b)
+#pragma acc enter data copyin(a[ :n]) create(b)
 
   b = a;
   acc_attach ((void **)&b);
 
-#pragma acc parallel loop present (b[:n])
+#pragma acc parallel loop present (b[ :n])
   for (i = 0; i < n; i++)
     b[i] = i+1;
 
   acc_detach ((void **)&b);
 
-#pragma acc exit data copyout(a[:n], b)
+#pragma acc exit data copyout(a[ :n], b)
 
   for (i = 0; i < 10; i++)
     assert (a[i] == b[i]);
index 8874ca0a50459cc1920c7bab51d110bf51765ba3..acbca9d554be1207eae1e512f8e54ef61fd8f060 100644 (file)
@@ -14,7 +14,7 @@ sum_nodes (struct node *head)
 {
   int i = 0, sum = 0;
 
-#pragma acc parallel reduction(+:sum) present(head[:1])
+#pragma acc parallel reduction(+:sum) present(head[ :1])
   {
     for (; head != NULL; head = head->next)
       sum += head->val;
@@ -37,7 +37,7 @@ insert (struct node *head, int val)
   n->next = head->next;
   head->next = n;
 
-#pragma acc enter data copyin(n[:1])
+#pragma acc enter data copyin(n[ :1])
 #pragma acc enter data attach(head->next)
   if (n->next)
     {
@@ -57,7 +57,7 @@ destroy (struct node *head)
        {
 #pragma acc exit data detach(n->next)
        }
-#pragma acc exit data delete (n[:1])
+#pragma acc exit data delete (n[ :1])
       if (head->next)
        {
 #pragma acc enter data attach(head->next)
index 89cafbb62abbf2d4467ca03dbfb1684d9858d54e..ce2f0d305152b81db0ff6b2feb92f7acaf2eeaee 100644 (file)
@@ -13,7 +13,7 @@ sum_nodes (struct node *head)
 {
   int i = 0, sum = 0;
 
-#pragma acc parallel reduction(+:sum) present(head[:1])
+#pragma acc parallel reduction(+:sum) present(head[ :1])
   {
     for (; head != NULL; head = head->next)
       sum += head->val;
index 391149459c90c05d8c4a52cd8b208770987b9779..9603bdc0534e277de850139985c09bfd78917cc6 100644 (file)
@@ -24,7 +24,7 @@ main ()
     {
 #pragma acc data copy(v)
       {
-#pragma acc data copy(v.b[:n])
+#pragma acc data copy(v.b[ :n])
        {
          for (i = 0; i < n; i++)
            {
index 13e5ca2e056c0f3256dd1a077e0b7d3cd2dccd5b..0bc735139832eeab41b2b96dfabfbcfd959e3a94 100644 (file)
@@ -31,7 +31,7 @@ main ()
       for (i = 0; i < n; i++)
        v.b[i] = v.a + i;
 
-#pragma acc exit data copyout(v.b[:n]) finalize
+#pragma acc exit data copyout(v.b[ :n]) finalize
 #pragma acc exit data delete(v.a)
 
       for (i = 0; i < n; i++)
index e705f78c3112dd692e95aba8ae8be4940f977f62..a132cb635f7b2f839fc9d536bb869f204ccdf344 100644 (file)
@@ -35,15 +35,15 @@ test (unsigned variant)
 
   for (k = 0; k < 16; k++)
     {
-#pragma acc enter data copyin(v.a, v.b[:n], v.c[:n], v.d[:n])
+#pragma acc enter data copyin(v.a, v.b[ :n], v.c[ :n], v.d[ :n])
 
 #pragma acc parallel loop
       for (i = 0; i < n; i++)
        v.b[i] = v.a + i;
 
-#pragma acc exit data copyout(v.b[:n])
-#pragma acc exit data copyout(v.c[:n])
-#pragma acc exit data copyout(v.d[:n])
+#pragma acc exit data copyout(v.b[ :n])
+#pragma acc exit data copyout(v.c[ :n])
+#pragma acc exit data copyout(v.d[ :n])
 #pragma acc exit data copyout(v.a)
 
       for (i = 0; i < n; i++)