Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Tell the world we gave up on pushing CC_OPTIMIZE_FOR_SIZE

In commit 281dc5c5ec0f ("Give up on pushing CC_OPTIMIZE_FOR_SIZE") we
already changed the actual default value, but the help-text still
suggested 'y'. Fix the help text too, for all the same reasons.

Sadly, -Os keeps on generating some very suboptimal code for certain
cases, to the point where any I$ miss upside is swamped by the downside.
The main ones are:

- using "rep movsb" for memcpy, even on CPU's where that is
horrendously bad for performance.

- not honoring branch prediction information, so any I$ footprint you
win from smaller code, you lose from less code density in the I$.

- using divide instructions when that is very expensive.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kirill Smelkov and committed by
Linus Torvalds
3a55fb0d fbfc23ef

+1 -1
+1 -1
init/Kconfig
··· 1182 1182 Enabling this option will pass "-Os" instead of "-O2" to gcc 1183 1183 resulting in a smaller kernel. 1184 1184 1185 - If unsure, say Y. 1185 + If unsure, say N. 1186 1186 1187 1187 config SYSCTL 1188 1188 bool