Bug#684926: linux: disable CONFIG_CC_OPTIMIZE_FOR_SIZE
Source: linux
Severity: wishlist
Hi.
Is there any reasons why you've enabled CONFIG_CC_OPTIMIZE_FOR_SIZE?
>From the help:
> Enabling this option will pass "-Os" instead of "-O2" to gcc resulting in a smaller kernel.
>From gcc:
> Optimize for size. -Os enables all -O2 optimizations that do not
> typically increase code size. It also performs further
> optimizations designed to reduce code size.
> -Os disables the following optimization flags: -falign-functions
> -falign-jumps -falign-loops -falign-labels -freorder-blocks
> -freorder-blocks-and-partition -fprefetch-loop-arrays
> -ftree-vect-loop-version
So we loose all kinds of optimisations just for storage, which really doesn't
count on all but embedded systems.
Cheers,
Chris.
Reply to: