Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474724 - sys-kernel/genkernel: disable CONFIG_CC_OPTIMIZE_FOR_SIZE
Summary: sys-kernel/genkernel: disable CONFIG_CC_OPTIMIZE_FOR_SIZE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabio Erculiani (RETIRED)
Depends on: 472470
  Show dependency tree
Reported: 2013-06-25 13:49 UTC by Nikoli
Modified: 2015-08-26 17:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2013-06-25 13:49:41 UTC
Upstream does not enable CONFIG_CC_OPTIMIZE_FOR_SIZE by default anymore:

There is GCC bug report related to it:

Many of major distros have it disabled:
config-3.8.0-19-generic_amd64_ubuntu:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
config-3.9.7-200.fc18.x86_64:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
config-3.9.7-arch-amd64:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

Please disable it in configs:;a=blob;f=defaults/kernel-config;h=aeece3a3d49fcfcd8637c6d6b85a4d2efc27a566;hb=HEAD#l86

P.S. It is unusual to see tracker which blocks bugs instead depending on them.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 16:23:20 UTC
agreed, the change has been made on x86/x86_64 for genkernel.  any other changes will need to come from respective arch teams

git commit f7fc9dca47d5c5d6ea5b894e232068e464353658

reassigning to genkernel-next maintainer to see if they would also like to make this change
Comment 2 Richard Yao (RETIRED) gentoo-dev 2015-08-26 17:51:10 UTC
As of v3.4.52, the genkernel has imported RHEL6's config file generation infrastructure and config files with additional changes to better suit Gentoo users.

The default kernel configuration files are generated by combining defaults/kernel-generic-config with arch/$ARCH/arch-config to create arch/$ARCH/generated-config. That is then run through oldconfig when genkernel is asked to compile a kernel where there is no pre-existing .config present.

The kernel-config files are still around for convenience because they had not been fully analyzed on more obscure architectures, but they will be removed from the repository as part of future clean up.