]> git.ipfire.org Git - thirdparty/gcc.git/commit
[og10] Fortran: %re/%im fixes for OpenMP/OpenACC + gfc_is_simplify_contiguous
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Feb 2021 16:39:49 +0000 (17:39 +0100)
committerJulian Brown <julian@codesourcery.com>
Wed, 24 Feb 2021 14:39:08 +0000 (06:39 -0800)
commitd8b3ac6d51c72c7720f178960cdb2e8afbeae488
tree248113f9d856c9687093069248746f317cdeb96b
parent26904e20cef034805fb927d9e1cf143ecb067d33
[og10] Fortran: %re/%im fixes for OpenMP/OpenACC + gfc_is_simplify_contiguous

gcc/fortran/ChangeLog:

* expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
%im and %re which are EXPR_VARIABLE.
* openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.

gcc/testsuite/ChangeLog:

* gfortran.dg/goacc/ref_inquiry.f90: New test.
* gfortran.dg/gomp/ref_inquiry.f90: New test.

(cherry picked from commit 799478b8914c438f7a33eb319efbae69c81f2111)
gcc/fortran/ChangeLog.omp
gcc/fortran/expr.c
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/goacc/ref_inquiry.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/ref_inquiry.f90 [new file with mode: 0644]