openmp: Fix up !$omp target parallel handling
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 08:54:59 +0000 (09:54 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 08:54:59 +0000 (09:54 +0100)
commit44a9d801a7080d39658754ad603536da6cff2cd0
tree617e098fd0dca82af8e90aef29025792bb7f3424
parenta38979d9d7a4ab08336436052704028c56187618
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/ChangeLog
gcc/cp/ChangeLog
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]