openmp: Fix up !$omp target parallel handling
commita7324c0216fcb95157a1f9f980e1351d17228b35
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 14:42:58 +0000 (14 15:42 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:47 +0000 (14 16:01 +0100)
treef5acdcface82bd419402c3ded4c8ebac88e8c470
parentba6ebaafc62924a05c961146cb0ec114ae8b04cf
openmp: Fix up !$omp target parallel handling

The PR93329 fix revealed we ICE on !$omp target parallel, this change fixes
that.

2020-01-22  Jakub Jelinek  <jakub@redhat.com>

* parse.c (parse_omp_structured_block): Handle ST_OMP_TARGET_PARALLEL.
* trans-openmp.c (gfc_trans_omp_target)
<case EXEC_OMP_TARGET_PARALLEL>: Call pushlevel first.

* gfortran.dg/gomp/target-parallel1.f90: New test.
* gfortran.dg/goacc/pr93329.f90: Enable commented out target parallel
test.
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr93329.f90
gcc/testsuite/gfortran.dg/gomp/target-parallel1.f90 [new file with mode: 0644]