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

--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <[email protected]>:

https://gcc.gnu.org/g:3c3c7f6519f54d26afdb9bd810cc7bc11b395a53

commit r16-7270-g3c3c7f6519f54d26afdb9bd810cc7bc11b395a53
Author: Kirill Chilikin <[email protected]>
Date:   Sun Jan 25 14:43:08 2026 +0700

    fortran: Fix creation of reference to C_FUNLOC argument [PR117303]

    The reference returned by C_FUNLOC is assigned to a variable. Without that,
    no reference from the calling subprogram to the argument of C_FUNLOC
    was created in the call graph, resulting in an undefined-reference error
    with link-time optimization. Please see PR 117303 for more details.

            PR fortran/117303

    gcc/fortran/ChangeLog:

            * trans-intrinsic.cc (conv_isocbinding_function):
            Assign the reference returned by C_FUNLOC to a variable.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/c_funloc_tests_7.f90:
            Updated test due to changed code generation.
            * gfortran.dg/c_funloc_tests_9.f90: New test.

    Signed-off-by: Kirill Chilikin <[email protected]>

Reply via email to