https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65263
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:e68a58a119da54a1039f42a0749a637536974a1c commit r17-5502-ge68a58a119da54a1039f42a0749a637536974a1c Author: Kees Cook <[email protected]> Date: Thu Oct 15 12:45:18 2026 -0700 ipa-icf: Step to the next caller past a thunk in redirect_all_callers redirect_all_callers walks the callers of N, but steps past a thunk caller with next_callee, the next call the thunk makes. A thunk makes only that one call, so the walk ends there, and so the callers after the thunk in the list would not be redirected. This came with the thunk check in commit 17d1bf760f8 ("re PR target/65263"). gcc/ChangeLog: * ipa-icf.cc (redirect_all_callers): Step to the next caller, not the next callee, past a thunk. Signed-off-by: Kees Cook <[email protected]>
