From: Thiemo Seufer Date: Mon, 1 Sep 2008 14:23:02 +0000 (+1000) Subject: powerpc: Enforce a non-spe kernel build even on broken compilers X-Git-Tag: v2.6.28-rc1~569^2~66 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce400c0102d8e1367266115ce6bc22333e5e3da6;p=linux-2.6-omap-h63xx.git powerpc: Enforce a non-spe kernel build even on broken compilers Those two are required on my fresh gcc 4.3.1. Signed-off-by: Thiemo Seufer Signed-off-by: Sebastian Siewior Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 4df38cbb414..24dd1a37f8f 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -104,7 +104,10 @@ endif KBUILD_CFLAGS += $(call cc-option,-mno-altivec) # No SPE instruction when building kernel +# (We use all available options to help semi-broken compilers) KBUILD_CFLAGS += $(call cc-option,-mno-spe) +KBUILD_CFLAGS += $(call cc-option,-mspe=no) +KBUILD_CFLAGS += $(call cc-option,-mabi=no-spe) # Enable unit-at-a-time mode when possible. It shrinks the # kernel considerably.