]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86: add -freg-struct-return to CFLAGS
authorIngo Molnar <mingo@elte.hu>
Thu, 22 Feb 2007 08:38:22 +0000 (09:38 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 26 Feb 2007 20:53:30 +0000 (12:53 -0800)
commit974dfadb8cfb9526d878385a26a3cd81f9ed014b
tree7ef036d734cb14579040d2825bdf30a9a24daca5
parent95047fe32469353ace2fc4349f72118c22e37520
[PATCH] x86: add -freg-struct-return to CFLAGS

Jeremy Fitzhardinge suggested the use of -freg-struct-return, which does
structure-returns (such as when using pte_t) in registers instead of on
the stack.

that is indeed so, and this option reduced the kernel size a bit:

    text    data     bss     dec     hex filename
 4799506  543456 3760128 9103090  8ae6f2 vmlinux.before
 4798117  543456 3760128 9101701  8ae185 vmlinux.after

the resulting kernel booted fine on my testbox. Lets go for it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/Makefile