[PATCH] powerpc: enforce a non-spe kernel build even on broken compilers

Sebastian Siewior bigeasy at linutronix.de
Tue Sep 2 00:23:02 EST 2008


From: Thiemo Seufer <ths at linutronix.de>

those two are requried on my fresh gcc 4.3.1

Signed-off-by: Thiemo Seufer <ths at linutronix.de>
Signed-off-by: Sebastian Siewior <bigeasy at linutronix.de>
---
Not sure if this is intendent or a gcc bug but with -mno-spe
the spe opcodes were not used floating point anymore but
for 64bit save/restore for instance.

 arch/powerpc/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index b7d4c4c..3727e4f 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -108,7 +108,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.
-- 
1.5.6.5




More information about the Linuxppc-dev mailing list