[Bug ipa/82476] C++: Inlining fails for a simple function

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Oct 8 19:47:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82476

--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
What is the point of inlining it? It isn't a hot call (called once from main).
And unless you are using something like -flto of -fwhole-program (which would
turn the function static), it has to be emitted as a separate function as well,
so inlining it increases code size.


More information about the Gcc-bugs mailing list