This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/82476] C++: Inlining fails for a simple function
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 08 Oct 2017 19:47:30 +0000
- Subject: [Bug ipa/82476] C++: Inlining fails for a simple function
- Auto-submitted: auto-generated
- References: <bug-82476-4@http.gcc.gnu.org/bugzilla/>
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.