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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Josef Melcr
<[email protected]>:

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

commit r16-9591-gb9fd7202c05aa2c1e69cf373183b476b90854e73
Author: Josef Melcr <[email protected]>
Date:   Mon Aug 24 12:20:41 2026 +0200

    ipa: Recreate references with call statements in the target clone pass
[PR127023]

    References are recreated when redirecting edges in the target clone
    pass. However, the references are not created with their corresponding
    call statements, potentially leading to ICEs as shown in PR127023.  This
    patch fixes that.

            PR ipa/127023

    gcc/ChangeLog:

            * multiple_target.cc (create_dispatcher_calls): Use the call
            statement variant of create_reference.

    gcc/testsuite/ChangeLog:

            * gcc.target/i386/pr127023.c: New test.

    Signed-off-by: Josef Melcr <[email protected]>
    (cherry picked from commit 56773f432d94f5e2f1e3f2d5b106e4e60bbebcea)

Reply via email to