-Os & inlining functions used only once

Jakub Jelinek jakub@redhat.com
Tue Apr 17 11:11:00 GMT 2001


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



More information about the Gcc mailing list