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: dewar at gnat dot com, schwab at suse dot de
- Cc: Richard dot Earnshaw at arm dot com, aph at redhat dot com, austern at apple dot com,bernds at redhat dot com, echristo at redhat dot com, galibert at pobox dot com,gcc at gcc dot gnu dot org
- Date: Sat, 15 Mar 2003 15:09:55 -0500 (EST)
- Subject: Re: -fobey-inline (was Re: gcc and inlining)
> On the other hand, inlining a function can create great opportunities for
> constant folding. This is the point where gcc is currently very weak
> because it bases its heuristics on the unfolded size of the inline
> function.
Good point, and sometimes you write an inlined function knowing that
it will collapse when inlined, and this is a case where you really
do know better than the compiler.