This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/71349] Combined async target clause parsing issues


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71349

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon May 30 21:36:24 2016
New Revision: 236900

URL: https://gcc.gnu.org/viewcvs?rev=236900&root=gcc&view=rev
Log:
        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.

Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-omp.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/c-c++-common/gomp/clauses-1.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]