This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]