linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers
@ 2008-09-01 14:23 Sebastian Siewior
  2008-10-14 19:25 ` Nate Case
  2008-10-14 21:23 ` Kumar Gala
  0 siblings, 2 replies; 14+ messages in thread
From: Sebastian Siewior @ 2008-09-01 14:23 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, ths

From: Thiemo Seufer <ths@linutronix.de>

those two are requried on my fresh gcc 4.3.1

Signed-off-by: Thiemo Seufer <ths@linutronix.de>
Signed-off-by: Sebastian Siewior <bigeasy@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

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-10-24 23:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 14:23 [PATCH] powerpc: enforce a non-spe kernel build even on broken compilers Sebastian Siewior
2008-10-14 19:25 ` Nate Case
2008-10-14 22:02   ` Nate Case
2008-10-14 21:23 ` Kumar Gala
2008-10-14 22:35   ` Nate Case
2008-10-14 22:49   ` Sebastian Andrzej Siewior
2008-10-15  8:59     ` Sebastian Andrzej Siewior
2008-10-15 13:25       ` Kumar Gala
2008-10-15 14:43         ` Sebastian Andrzej Siewior
2008-10-15 16:31           ` Kumar Gala
2008-10-17 14:02           ` Nate Case
2008-10-17 15:01             ` Sebastian Andrzej Siewior
2008-10-24 23:51             ` Nate Case
2008-10-24 23:55               ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).