https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127023
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Josef Melcr <[email protected]>: https://gcc.gnu.org/g:56773f432d94f5e2f1e3f2d5b106e4e60bbebcea commit r17-3625-g56773f432d94f5e2f1e3f2d5b106e4e60bbebcea 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]>
