openmp: Teach omp_code_to_statement about rest of OpenMP statements
commitba6ebaafc62924a05c961146cb0ec114ae8b04cf
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 14:41:59 +0000 (14 15:41 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 15:01:47 +0000 (14 16:01 +0100)
treebc850d8f106875d37c412499fa8885f0b380f060
parent0b00f43cf381f03aeaced375f8f0ef1e731c9f43
openmp: Teach omp_code_to_statement about rest of OpenMP statements

The omp_code_to_statement function added with the initial OpenACC support
only handled small subset of the OpenMP statements, leading to ICE if
any other OpenMP directive appeared inside of OpenACC directive.

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

PR fortran/93329
* openmp.c (omp_code_to_statement): Handle remaining EXEC_OMP_*
cases.

* gfortran.dg/goacc/pr93329.f90: New test.
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr93329.f90 [new file with mode: 0644]