powerpc: Enforce a non-spe kernel build even on broken compilers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, October 15, 2008 - 12:01 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ce400c...
Commit:     ce400c0102d8e1367266115ce6bc22333e5e3da6
Parent:     d6c93adbeb98c56e19f7df37633566b39fbcd4c9
Author:     Thiemo Seufer <ths@linutronix.de>
AuthorDate: Tue Sep 2 00:23:02 2008 +1000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Mon Sep 15 11:08:41 2008 -0700

    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 <ths@linutronix.de>
    Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 arch/powerpc/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 4df38cb..24dd1a3 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.
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
powerpc: Enforce a non-spe kernel build even on broken com ..., Linux Kernel Mailing ..., (Wed Oct 15, 12:01 pm)