]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp, fortran: Revert to using tree expressions when translating Fortran OpenMP...
authorKwok Cheung Yeung <kcyeung@baylibre.com>
Wed, 16 Apr 2025 10:43:00 +0000 (11:43 +0100)
committerKwok Cheung Yeung <kcyeung@baylibre.com>
Thu, 17 Apr 2025 22:29:54 +0000 (23:29 +0100)
commit89e6586616e84564902b4721364a091daa6cd0a3
tree4346ea7f12a67406bd87e6fa5db848bdcd893a17
parent2afb6281a5a8711b82aa744e71c181bab6537e3c
openmp, fortran: Revert to using tree expressions when translating Fortran OpenMP array sections

In the patch 'OpenACC 2.7: Implement reductions for arrays and records',
temporaries are used to hold the decl and bias of clauses resulting from array
sections, which breaks some assumptions made for map iterator support.

This patch reverts the change for OpenMP only.

gcc/fortran/

* trans-openmp.cc (gfc_trans_omp_array_section): Use temporaries only
when translating OpenACC.

gcc/testsuite/

* gfortran.dg/gomp/target-enter-exit-data.f90: Revert expected tree
dumps.
gcc/fortran/ChangeLog.omp
gcc/fortran/trans-openmp.cc
gcc/testsuite/ChangeLog.omp
gcc/testsuite/gfortran.dg/gomp/target-enter-exit-data.f90