]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Gimplify OMP_CLAUSE_SIZE during gfc_omp_finish_clause [PR100965]
authorJakub Jelinek <jakub@redhat.com>
Wed, 9 Jun 2021 08:48:41 +0000 (10:48 +0200)
committerJakub Jelinek <jakub@redhat.com>
Wed, 9 Jun 2021 08:48:41 +0000 (10:48 +0200)
commitd4d38135b3137f1d3148138340e67bdcd7ea8216
treee9b084f02634272681f8ef241dbe37ee466d933e
parent267dbd42f42c52a515f49c0875d296a9cf5988fe
openmp: Gimplify OMP_CLAUSE_SIZE during gfc_omp_finish_clause [PR100965]

As the testcase shows, we need to gimplify OMP_CLAUSE_SIZE, so that we
don't end up with SAVE_EXPR or anything similar non-gimple in it.

2021-06-08  Jakub Jelinek  <jakub@redhat.com>

PR fortran/100965
* trans-openmp.c (gfc_omp_finish_clause): Gimplify OMP_CLAUSE_SIZE.

* gfortran.dg/gomp/pr100965.f90: New test.
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/pr100965.f90 [new file with mode: 0644]