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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>:

https://gcc.gnu.org/g:0f77d88fdf797842ac0134a4013b4227dd5a658f

commit r15-9314-g0f77d88fdf797842ac0134a4013b4227dd5a658f
Author: Tobias Burnus <tbur...@baylibre.com>
Date:   Tue Apr 8 13:47:53 2025 +0200

    OpenMP: Fix append_args handling in modify_call_for_omp_dispatch

    At tree level, the addr ref is also required for array dummy arguments,
    contrary to C; the GOMP_interop calls in modify_call_for_omp_dispatch
    were updated accordingly (using build_fold_addr_expr).

    As the GOMP_interop calls had no location data associated with them,
    the init call happened as soon as executing the previous line of code,
    which was confusing; solution: use the location data of the function
    call itself.

            PR middle-end/119662

    gcc/ChangeLog:

            * gimplify.cc (modify_call_for_omp_dispatch): Fix GOMP_interop
            arg passing; add location info to function calls.

    libgomp/ChangeLog:

            * testsuite/libgomp.c/append-args-fr-1.c: New test.
            * testsuite/libgomp.c/append-args-fr.h: New test.

    gcc/testsuite/ChangeLog:
            * c-c++-common/gomp/append-args-interop.c: Update for fixed
            GOMP_interop call.
            * g++.dg/gomp/append-args-8.C: Likewise.
            * gfortran.dg/gomp/append-args-interop.f90: Likewise.

Reply via email to