https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84658
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #3) > Seems the inliner immediately undoes what ICF did and both get inlined into > main as well. It's not undoing the decision because the symbol (Bar) is global. So it both inlines into main and the wrapper is preserved. But it's not triggering the issue.