[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Symbols and C++ inline constructor



On Thu, Jan 05, 2012 at 11:46:26PM +0100, Thomas Weber wrote:
> Hi, 
> I have a question about an inline constructor and debian/symbols. 
> The code looks like this:
> 
> class X {
> 
> 	public: 
> 		X() { some code };
> }
> 
> According to http://gcc.gnu.org/onlinedocs/gcc/Inline.html, this means
> that the constructor is inlined.

Good question.  IIRC inline is only a hint--it's not guaranteed to
be inlined if the compiler thinks it's more efficient not to.  From
the symbols POV, what really matters is the content of the ELF
symbol table.  If it's present then include it, otherwise don't.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.


Reply to: