Ingo Molnar 60a3cdd063 x86: add optimized inlining
add CONFIG_OPTIMIZE_INLINING=y.

allow gcc to optimize the kernel image's size by uninlining
functions that have been marked 'inline'. Previously gcc was
forced by Linux to always-inline these functions via a gcc
attribute:

 #define inline	inline __attribute__((always_inline))

Especially when the user has already selected
CONFIG_OPTIMIZE_FOR_SIZE=y this can make a huge difference in
kernel image size (using a standard Fedora .config):

   text    data     bss     dec           hex filename
   5613924  562708 3854336 10030968    990f78 vmlinux.before
   5486689  562708 3854336  9903733    971e75 vmlinux.after

that's a 2.3% text size reduction (!).

Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-04-26 17:44:55 +02:00
..
2008-04-25 12:27:32 -07:00
2008-04-26 17:44:55 +02:00
2007-10-20 01:13:56 +02:00
2007-10-17 20:16:15 +02:00
2008-04-19 19:19:55 +02:00
2008-04-19 19:19:54 +02:00
2008-04-24 23:15:43 +02:00
2008-04-17 17:41:34 +02:00
2008-04-26 17:44:55 +02:00