This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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