parse.c (case_decl): Move ST_OMP_* to ...
authorJakub Jelinek <jakub@redhat.com>
Wed, 1 Jun 2016 12:21:38 +0000 (14:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 1 Jun 2016 12:21:38 +0000 (14:21 +0200)
commit3e32893c0bba66df33a1143afcb45e345172360a
tree3dfc018192a37399a5ca433cddee738e5cd60c81
parent8c38360082278de6400ac277e15f75edecc8eb39
parse.c (case_decl): Move ST_OMP_* to ...

* parse.c (case_decl): Move ST_OMP_* to ...
(case_omp_decl): ... here, new macro.
(verify_st_order): For case_omp_decl, complain about
p->state >= ORDER_EXEC, but don't change p->state otherwise.

* gfortran.dg/gomp/order-1.f90: New test.
* gfortran.dg/gomp/order-2.f90: New test.

From-SVN: r236987
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/order-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/order-2.f90 [new file with mode: 0644]