On Thu, 2005-12-29 at 19:42 +0100, Arjan van de Ven wrote: > > > > One thing we could do: I think modern gcc's at least have an option to > > warn when they don't inline something. It might make sense to just enable > > that warning, and see _which_ functions -Os and -funit-at-a-time say are > > too large to be inlined. > > > with -Os gcc gets a bit picky and warns a LOT; with -O2... you get the > following fixes (all huge functions) > btw this caught one bug that the forced attribute was hiding: there was a function which was "inline" and which uses a variable sized array. normally gcc refuses to inline that (rightfully; esp relative addressing gets rather really complex in that scenario), but the force attribute causes it to be inlined anyway. No idea if the result is sane in that case... - 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/
- References:
- [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: Linus Torvalds <[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: 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
- From: Ingo Molnar <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Andrew Morton <[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: Linus Torvalds <[email protected]>
- Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers
- From: Arjan van de Ven <[email protected]>
- [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: [PATCH] Make vm86 support optional
- 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):