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]

Re: -Os & inlining functions used only once


On Tue, Apr 17, 2001 at 06:55:49PM +0100, Neil Booth wrote:
> Alexandre Duret-Lutz wrote:-
> 
> > Ah, that makes sense.  So I'll pre-scan the file myself and mark
> > those functions 'inline' :)
> 
> That might be easy to implement as a quick hack, but to do it so you
> get it right all the time sounds extremely hard.

Perhaps it could make sense to add a warning (not enabled through either -W
or -Wall) which would warn if a static function used only once was not
marked inline.

	Jakub


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