Re: [patch] x86: add -freg-struct-return to CFLAGS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 22, 2007 at 09:38:22AM +0100, Ingo Molnar wrote:
> Subject: [patch] x86: add -freg-struct-return to CFLAGS
> From: Ingo Molnar <[email protected]>
> 
> 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.

Ok I added it for now. Let's see what happens.

I guess people maintaining external Makefiles without Kbuild 
are in for a nasty surprise again though. Cannot be avoided unfortunately.

-Andi
-
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/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux