]> git.baikalelectronics.ru Git - kernel.git/commit
x86, compress: Force i386 instructions for the decompressor
authorH. Peter Anvin <hpa@zytor.com>
Fri, 25 Dec 2009 23:40:38 +0000 (15:40 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 25 Dec 2009 23:40:38 +0000 (15:40 -0800)
commitc12edd4c419f1c9a6e5446f5d0fa51a3b2c51ea2
tree4835ed4adac9ab7a4ee6e550557f71fd823dc70c
parent642a24382a76c23961019f2e626782da110e040c
x86, compress: Force i386 instructions for the decompressor

Recently, some distros have started shipping versions of gcc which
default to -march=i686.  This breaks building kernels for pre-i686
machines, even if they have been selected in Kconfig, due to the
generation of CMOV instructions.

There isn't enough benefit to try to preserve the generation of these
instructions even when selected, so simply force -march=i386 for the
decompressor when building a 32-bit kernel.

Reported-and-tested-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <219280.97558.qm@web52907.mail.re2.yahoo.com>
arch/x86/boot/compressed/Makefile