]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: Map holds clause to IFN_ASSUME for Fortran
authorTobias Burnus <tobias@codesourcery.com>
Thu, 6 Oct 2022 16:42:32 +0000 (18:42 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 6 Oct 2022 16:44:09 +0000 (18:44 +0200)
commit50c35c691517291dbb77b1661761bc59950ba101
tree3d750d59c788fd9914260ce3a1f62506a462e596
parentfa258f6894801aef6785f0327594dc803da63fbd
openmp: Map holds clause to IFN_ASSUME for Fortran

Same as r13-3107-g847f5addc4d07a2f3b95f5daa50ab4a64dfd957d did for C/C++.
Convert '!$omp assume holds(cond)' to IFN_ASSUME (cond).

gcc/fortran/
* trans-openmp.cc (gfc_trans_omp_assume): New.
(gfc_trans_omp_directive): Call it.

gcc/testsuite/
* gfortran.dg/gomp/assume-3.f90: New test.
* gfortran.dg/gomp/assume-4.f90: New test.
gcc/fortran/trans-openmp.cc
gcc/testsuite/gfortran.dg/gomp/assume-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/assume-4.f90 [new file with mode: 0644]