From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Apr 2007 20:14:02 +0900 From: Akinobu Mita To: linuxppc-dev@ozlabs.org Subject: [patch 2/3] prevent string instructions for FLS_BOOKE Message-ID: <20070410111402.GB2957@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Arnd Bergmann , Paul Mackerras , cbe-oss-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I don't know what is the issue for FSL BookE on -mstring option. But GCC is now putting string instructions even if you don't specify -mstring. This patch adds -mno-string option for FLS_BOOKE and prevents string instruction. Signed-off-by: Akinobu Mita Index: 2.6-git-ps3/arch/powerpc/Makefile =================================================================== --- 2.6-git-ps3.orig/arch/powerpc/Makefile +++ 2.6-git-ps3/arch/powerpc/Makefile @@ -102,6 +102,10 @@ CFLAGS += $(call cc-option,-mno-altivec) # kernel considerably. CFLAGS += $(call cc-option,-funit-at-a-time) +ifeq ($(CONFIG_FSL_BOOKE),y) +CFLAGS += -mno-string +endif + ifeq ($(CONFIG_6xx),y) CFLAGS += -mcpu=powerpc endif