https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99122
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Martin Jambor from comment #6) > > For punting on inlining these, I couldn't find any spot that would try to > > verify at least remote compatibility of the passed in arguments and the > > arguments the callee expects. > > No, with LTO it would be too late even if we tried to, (IPA) inlining > decisions are not meant to be un-doable. The idea was that mismatches > are undefined and so we should try our best to emulate non-inlining > and not ICE. But apparently we don't manage that now. Well, I meant decide not to inline because either any of the gimple_call_arg (stmt, ?) is a variable length or any of the expected arguments of the function are variable length during the IPA inlining decisions.