This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining (was: GCC 3.3 release criteria)
- From: "Timothy J. Wood" <tjw at omnigroup dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: Tolga Dalman <ates100 at web dot de>, gcc at gcc dot gnu dot org
- Date: Tue, 25 Feb 2003 12:58:56 -0800
- Subject: Re: Inlining (was: GCC 3.3 release criteria)
On Tuesday, February 25, 2003, at 09:59 AM, Matt Austern wrote:
Empirically, treating 'inline' as a directive rather than a hint will
make a lot
of programs much worse. This isn't conjecture. We did the
measurement at
Apple. -fobey-inline is occasionally useful, but making it the
default would be
disastrous.
You could make -Winline be on by default instead. This would let the
compiler make the choice and would warn if an function was marked
inline and the compiler disagreed with you (hopefully saying *why* it
disagreed).
This would help people get rid of extra 'inline' keywords and once
that was done, they'd have a better chance of turning on -fobey-inline
without terrible results (and presumably -fobey-inline would imply
-Winline).
-tim