https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107252
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Carlos Galvez from comment #2) > To clarify, even removing things from the second function has an impact on > the first function (which is where the warning comes from). Shouldn't both > functions be independent? No because inlining heuristics takes into account the whole translation unit so removing things changes how much inlining happens or where it happens (etc.). The diagnostic with the warning is dependent on the inlining and optimization. Someone will need to look into the debug dumps to understand what exactly is going on though.