https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67435
--- Comment #4 from Yann Collet <yann.collet.73 at gmail dot com> --- > Gcc also tries to limit code growth for the unit also which might be > something you are seeing. Yes, that could be the case. Is there some information available somewhere on such unit-level limit ? Specifically, I'm wondering if splitting the file into 2 would help. But since it's a fairly large and difficult task, I'm really looking for hints that it's the right solution before starting that direction. > you can use -fdump-ipa-inline to look at gcc's inline decisions in detail. > You can also try -Winline Sure, I will try them. > Do you see similar effects with 4.9.3 or 5.2? I've difficulties installing multiple versions of gcc on the same dev system. I will try again when I've got time. But anyway, that's not the sole issue : my users have the compiler they have, meaning I can't target only the latest version, since >90% of users won't have it. I don't intend to support gcc 1.2 either, but there is a middle ground to find. If I can have a solution which works with gcc 4.6 / 4.8, without relying on new features from 5.x, then it's a better solution.