https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106499
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> --- In addition to that, -flto-partition=none is almost never a good idea either. Note I think that we should honor flatten only during early inlining to avoid all kinds of funny behavior when applying cross TU.