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/81887] pragma omp ordered simd ignored under -fopenmp-simd


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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Sep  1 11:25:39 2017
New Revision: 251585

URL: https://gcc.gnu.org/viewcvs?rev=251585&root=gcc&view=rev
Log:
        PR c/81887
c-family/
        * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
        (omp_pragmas_simd): ... here.
        * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
        create new clauses list containing just simd clause.
c/
        * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
cp/
        * parser.c (cp_parser_omp_ordered): Handle -fopenmp-simd.
fortran/
        * parse.c (decode_omp_directive): Use matchs instead of matcho for
        end ordered and ordered directives, except for ordered depend.  For
        -fopenmp-simd and ordered depend, reject the stmt.
        * trans-openmp.c (gfc_trans_omp_ordered): For -fopenmp-simd ignore
        threads clause and if simd clause isn't present, just translate the
        body.
testsuite/
        * c-c++-common/gomp/pr81887.c: New test.
        * gfortran.dg/gomp/pr81887.f90: New test.

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/pr81887.c
    trunk/gcc/testsuite/gfortran.dg/gomp/pr81887.f90
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-omp.c
    trunk/gcc/c-family/c-pragma.c
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/fortran/trans-openmp.c
    trunk/gcc/testsuite/ChangeLog

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