cvs commit: src/sys/dev/rp rp.c

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Jul 23 11:32:18 PDT 2003


In message <XFMail.20030723142400.jhb at FreeBSD.org>, John Baldwin writes:
>
>On 23-Jul-2003 Poul-Henning Kamp wrote:
>> phk         2003/07/23 11:03:23 PDT
>> 
>>   FreeBSD src repository
>> 
>>   Modified files:
>>     sys/dev/rp           rp.c 
>>   Log:
>>   Undo single-intance inlining which is way above the comfort limit for GCC.
>
>Single instance inlining can not hurt.  It can help by reducing call
>stack depth and code size however.  I thought you were for reducing code
>size, not increasing it.  Please use __always_inline to shut up gcc
>instead of de-inlining for single instance inlines.

Please provide data showing actual improvement for inlining.

If I changed this to __always_inline, I would change the code generated,
to start inlining these functions.  We don't know the effect of that.

Instead I preserve the status quo by removing the inline request which
GCC ignores.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-all mailing list