From d54f6ca99277dedde9f437522a247a6b7887adfc Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Wed, 26 Oct 2011 13:13:47 -0400 Subject: [PATCH] Disable CC_OPTIMIZE_FOR_SIZE on config-generic --- config-generic | 2 +- kernel.spec | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config-generic b/config-generic index ae510f359..9b81856b5 100644 --- a/config-generic +++ b/config-generic @@ -3764,7 +3764,7 @@ CONFIG_FRAME_WARN=1024 CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_INFO=y CONFIG_FRAME_POINTER=y -CONFIG_CC_OPTIMIZE_FOR_SIZE=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set # CONFIG_DEBUG_DRIVER is not set CONFIG_HEADERS_CHECK=y # CONFIG_RCU_TORTURE_TEST is not set diff --git a/kernel.spec b/kernel.spec index 1e214c89b..3c70f6642 100644 --- a/kernel.spec +++ b/kernel.spec @@ -2060,6 +2060,9 @@ fi - Install vdso on s390/s390x. - Fedora 8 was a very long time ago... fancy_debuginfo turns into with_debuginfo in the glorious future. +- Disable CONFIG_CC_OPTIMIZE_FOR_SIZE, upstream consensus is -O2 has + generated better code than -Os for a while + (https://lkml.org/lkml/2009/11/26/57) * Wed Oct 26 2011 Josh Boyer - CVE-2011-4077: xfs: potential buffer overflow in xfs_readlink() (rhbz 749166)