>* Linus Torvalds <[email protected]> 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 -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Linus Torvalds <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- References:
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Arjan van de Ven <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Adrian Bunk <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Krzysztof Halasa <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Linus Torvalds <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Prev by Date: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Next by Date: Re: recommended mail clients [was] [PATCH] ati-agp suspend/resume support (try 2)
- Previous by thread: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Next by thread: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- Index(es):