https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109622

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Julian Brown
<ju...@gcc.gnu.org>:

https://gcc.gnu.org/g:fa7c4ab36585ba128733265fb626ff3f4066400f

commit r13-7298-gfa7c4ab36585ba128733265fb626ff3f4066400f
Author: Julian Brown <jul...@codesourcery.com>
Date:   Wed Apr 26 14:31:53 2023 +0000

    OpenACC: Stand-alone attach/detach clause fixes for Fortran [PR109622]

    This patch fixes several cases where multiple attach or detach mapping
    nodes were being created for stand-alone attach or detach clauses
    in Fortran.  After the introduction of stricter checking later during
    compilation, these extra nodes could cause ICEs, as seen in the PR.

    The patch also fixes cases that "happened to work" previously where
    the user attaches/detaches a pointer to array using a descriptor, and
    (I think!) the "_data" field has offset zero, hence the same address as
    the descriptor as a whole.

    2023-04-27  Julian Brown  <jul...@codesourcery.com>

            PR fortran/109622

    gcc/fortran/
            * trans-openmp.cc (gfc_trans_omp_clauses): Attach/detach clause
fixes.

    gcc/testsuite/
            * gfortran.dg/goacc/attach-descriptor.f90: Adjust expected output.

    libgomp/
            * testsuite/libgomp.fortran/pr109622.f90: New test.
            * testsuite/libgomp.fortran/pr109622-2.f90: New test.
            * testsuite/libgomp.fortran/pr109622-3.f90: New test.

    (cherry picked from commit cacf65d74463600815773255e8b82b4043432bd7)

Reply via email to