Messages in this thread | | | Subject | Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers | From | Alan Cox <> | Date | Mon, 02 Jan 2006 23:55:41 +0000 |
| |
On Llu, 2006-01-02 at 22:23 +0000, Russell King wrote: > > you know what? gcc inlines those automatic even without you typing > > "inline". (esp if you have unit-at-a-time enabled)
> GCC will only automatically inline using -O3. We don't use -O3 with > the kernel - only -O2 and -Os.
Or using -finline-functions which is a good idea. -O3 has some other undesirable side effects. Both -O2 -finline-functions and -Os -finline-functions will do what looks to be the right thing.
Mind you anything more than a few instructions is questionable with current processors.
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |