Re: Inlined functions



Le lundi 31 octobre 2005 à 22:52 -0500, Robert Love a écrit :
> On Mon, 2005-10-31 at 22:45 -0500, Robert Love wrote:
> 
> > Oh, I bet I know what happened.  The function is static.  And gcc
> > realizes it is const.  And static const functions are merged into the
> > caller if possible.  So the "42" was just pasted into the call site.  
> 
> Eh, I should have pointed out that "constant merging" is not really the
> same as function inlining.

no, i guess this is because of gcc4 -funit-at-a-time
http://tinyurl.com/d3q34

-- 
Je cherche un emploi de développeur / admin sys&réseau sous GNU/Linux
http://fr.lolix.org/search/cv/cv.php3?id=7101 
http://dejean.benoit.free.fr/CV.pdf
%%
JID: TazForEver jabber org
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html

Attachment: signature.asc
Description: This is a digitally signed message part



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