openmp: Teach omp_code_to_statement about rest of OpenMP statements
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 08:50:53 +0000 (09:50 +0100)
committerJakub Jelinek <jakub@redhat.com>
Wed, 22 Jan 2020 08:50:53 +0000 (09:50 +0100)
commita38979d9d7a4ab08336436052704028c56187618
tree874a306b03c7a122a71ead76e83a91a9a708f494
parent5a8ea165926cb0737ab03bc48c18dc5198ab5305
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]