Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers

Jan Engelhardt
2006-01-02T21:01:46Z

>* Linus Torvalds <torvalds@osdl.org> wrote:
>
>> > For example, I add "inline" for static functions which are only called
>> > from one place.
>>
>> That's actually not a good practice. Two reasons:
>>
>> - debuggability goes way down. Oops reports give a much nicer call-chain
>> and better locality for uninlined code.

When I want to debug, I use
CFLAGS="-O0 -ggdb3 -fno-inline -fno-omit-frame-pointer"
for that particular file(s). That sure gets good results. Not sure about
who wins in the kernel case: always_inline or -fno-inline.

Jan Engelhardt
--