This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining heuristics for C++
- To: carlo at alinoe dot com, dan at cgsoftware dot com
- Subject: Re: Inlining heuristics for C++
- From: dewar at gnat dot com
- Date: Tue, 10 Jul 2001 00:49:38 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org
<<to thank you for writing this (I mean that). I am reassured too, that
functions marked as inline still WILL be inlined. If you add point 2)
>>
Personally, I don't feel that such reassurance is necessary. Obviously
a compiler is not required to inline things that are marked as inlined
(since basically inlining is semantically neutral). It is perfectly
reasonable for a compiler to take an inlining request as basically
a request to inline *if* time performance is improved, I think it is
always fine for a compiler to ignore an inlining request if inlining
would be detrimental to both time and space performance.