This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fobey-inline (was Re: gcc and inlining)
- From: dewar at gnat dot com (Robert Dewar)
- To: bernds at redhat dot com, dewar at gnat dot com
- Cc: Richard dot Earnshaw at arm dot com, aph at redhat dot com, austern at apple dot com,echristo at redhat dot com, galibert at pobox dot com, gcc at gcc dot gnu dot org
- Date: Sat, 15 Mar 2003 16:41:49 -0500 (EST)
- Subject: Re: -fobey-inline (was Re: gcc and inlining)
> Paraphrased, this is equivalent to "I really don't know what's going on here,
> please make a decision for me". We have support for this, it's called
> "-finline-functions". For trivial situations like the one you describe, the
> compiler can usually make a good guess.
No, not at all, the decision to inline is almost always additionally
informed by the knowledge that the function is called frequently, so
that inlining is worth while.