aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorCesar Philippidis <cesar@codesourcery.com>2016-07-15 07:13:48 -0700
committerCesar Philippidis <cesar@gcc.gnu.org>2016-07-15 07:13:48 -0700
commitb1c9c068f75c6763c0c6d1f1973e1b95f148feb7 (patch)
tree24f214bc9201f4e69ce3b4eb462e9c4ce97cfc09 /gcc/cp/parser.c
parentf7ba880b6b4b1c9d7437889204cac5df0268d158 (diff)
downloadgcc-b1c9c068f75c6763c0c6d1f1973e1b95f148feb7.zip
gcc-b1c9c068f75c6763c0c6d1f1973e1b95f148feb7.tar.gz
gcc-b1c9c068f75c6763c0c6d1f1973e1b95f148feb7.tar.bz2
c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER.
gcc/c/ * c-parser.c (c_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER. * c-typeck.c (handle_omp_array_sections): Mark data clauses with GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having zero-length subarrays. gcc/cp/ * parser.c (cp_parser_oacc_declare): Don't scan for GOMP_MAP_POINTER. * semantics.c (handle_omp_array_sections): Mark data clauses with GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having zero-length subarrays. gcc/ * omp-low.c (lower_omp_target): Mark data clauses with GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having zero-length subarrays. libgomp/ * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New test. From-SVN: r238376
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index ef35aa9..3e865b0 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -35258,11 +35258,6 @@ cp_parser_oacc_declare (cp_parser *parser, cp_token *pragma_tok)
case GOMP_MAP_DEVICE_RESIDENT:
break;
- case GOMP_MAP_POINTER:
- /* Generated by c_finish_omp_clauses from array sections;
- avoid spurious diagnostics. */
- break;
-
case GOMP_MAP_LINK:
if (!global_bindings_p ()
&& (TREE_STATIC (decl)