[Development] Qt binaries with inlined functions

Dimitar Dobrev dpldobrev at yahoo.com
Tue Apr 29 10:30:24 CEST 2014


    I don't need invisible inlines either but some of them - such as QModelIndex::row() - are visible. Is there any way to emit just the visible inlines?

    Dimitar

On Monday, April 28, 2014 4:12 PM, Thiago Macieira <thiago.macieira at intel.com> wrote:
 
Em seg 28 abr 2014, às 11:15:23, Koehne Kai escreveu:

> > -----Original Message-----
> > From: development-bounces+kai.koehne=digia.com at qt-project.org
> > Subject: [Development] Qt binaries with inlined functions
> > 
> >     Hello all,
> >    
> >     I'd like to start a discussion about .https://bugreports.qt-> > 
> > project.org/browse/QTBUG-32995. Please share your thoughts.
> 
> To get some numbers I tried to add
> 
> QMAKE_CXXFLAGS += -fkeep-inline-functions

`-fkeep-inline-functions'
     In C, emit `static' functions that are declared `inline' into the
     object file, even if the function has been inlined into all of its
     callers.  This switch does not affect functions using the `extern
     inline' extension in GNU C90.  In C++, emit any and all inline
     functions into the object file.

DO NOT pass that flag. There's no need to bloat our binaries with functions 
that cannot be called (remember, we pass -fvisibility-inlines-hidden).

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140429/4c3e677b/attachment.html>


More information about the Development mailing list