[vlc-devel] [Patch] Enable -finline-functions when using speed mode

Jean-Baptiste Kempf jb at videolan.org
Thu Apr 14 15:55:00 CEST 2011


On Thu, Apr 14, 2011 at 03:10:18PM +0200, Rémi Denis-Courmont wrote :
> On Thu, 14 Apr 2011 14:59:53 +0200, Hugo Beauzee-Luyssen
> <beauze.h at gmail.com> wrote:
> > This patch "directs GCC to try to integrate all “simple enough”
> > functions into their callers"
> > http://gcc.gnu.org/onlinedocs/gcc/Inline.html
> 
> We already have -finline-small-functions at the default -O2, which puts
> functions in line if it saves space.
> What's the rationale for overriding that?

Probably my fault, regarding the inline of simple getters in upnp.cpp
code (like Container::getParent) and I didn't see
inline-small-functions.

What I don't get is that whatever I do, I still don't get
Container::getInputItem inlined.

Will pursue investigation...

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list