re PR c++/71349 (Combined async target clause parsing issues)
authorJakub Jelinek <jakub@redhat.com>
Mon, 30 May 2016 21:36:24 +0000 (23:36 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 May 2016 21:36:24 +0000 (23:36 +0200)
commit00631022d83c44777b37f168831eb64142737cbe
treeb2bd7a6c98062669b723c17a2f37e5aaae9ab967
parentc8743fc5e5d6959e82d0d5d3ef03c36987921423
re PR c++/71349 (Combined async target clause parsing issues)

PR c++/71349
* c-parser.c (c_parser_omp_for): Don't disallow nowait clause
when combined with target construct.

* parser.c (cp_parser_omp_for): Don't disallow nowait clause
when combined with target construct.
(cp_parser_omp_parallel): Pass cclauses == NULL as last argument
to cp_parser_omp_all_clauses.

* c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
C_OMP_CLAUSE_SPLIT_TARGET.  Put OMP_CLAUSE_NOWAIT to
C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
instead of C_OMP_CLAUSE_SPLIT_FOR.

* c-c++-common/gomp/clauses-1.c (bar): Add dd argument.  Add
nowait depend(inout: dd[0]) clauses where permitted.

From-SVN: r236900
gcc/c-family/ChangeLog
gcc/c-family/c-omp.c
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/clauses-1.c