powerpc: delete -mstring option
PATCH 1/3 powerpc: delete -mstring option
There is no reason to force -mstring option. (Kumar, please see patch 2/3 for FSL_BOOKE temporary fix)
arch/powerpc/Makefile +0 -4
@@ -102,10 +102,6 @@ CFLAGS += $(call cc-option,-mno-altivec) # kernel considerably. CFLAGS += $(call cc-option,-funit-at-a-time) -ifndef CONFIG_FSL_BOOKE -CFLAGS += -mstring -endif - ifeq ($(CONFIG_6xx),y) CFLAGS += -mcpu=powerpc endif
arch/powerpc/Makefile CFLAGS += $(call cc-option,-mno-altivec) · line 107
Quoted 6 lines
There is no reason to force -mstring option. (Kumar, please see patch 2/3 for
FSL_BOOKEtemporary fix)arch/powerpc/Makefile +0
-3-ifndef CONFIG_FSL_BOOKE -CFLAGS += -mstring -endif
[and from 2/3]
Review
Quoted 3 lines
(quoted diff) +3
-0+ifeq ($(CONFIG_FSL_BOOKE),y) +CFLAGS += -mno-string +endif
This is the right solution, thank you for the patch. But please fold these two together so that you're not introducing a regression halfway the patch series.
Segher
Quoted 9 lines · Segher Boessenkool
arch/powerpc/Makefile CFLAGS += $(call cc-option,-mno-altivec) · line 107
Quoted 6 lines
There is no reason to force -mstring option. (Kumar, please see patch 2/3 for
FSL_BOOKEtemporary fix)arch/powerpc/Makefile +0
-3-ifndef CONFIG_FSL_BOOKE -CFLAGS += -mstring -endif[and from 2/3]
Quoted 7 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ifeq ($(CONFIG_FSL_BOOKE),y) +CFLAGS += -mno-string +endifThis is the right solution, thank you for the patch. But please fold these two together so that you're not introducing a regression halfway the patch series.
I agree this looks good and merge patches 1/3 and 2/3 into a single patch.
- k
Quoted 6 lines · Kumar Gala
Quoted 3 lines
This is the right solution, thank you for the patch. But please fold these two together so that you're not introducing a regression halfway the patch series.
I agree this looks good and merge patches 1/3 and 2/3 into a single patch.
Thansk, this is updated patch.
From: Akinobu Mita <[email protected]>
Subject: powerpc: delete -mstring option
There is no reason to force -mstring option.
This patch removes -mstring option, and adds -mno-string option for FLS_BOOKE (Because GCC is now putting string instructions even if you don't specify -mstring).
--- arch/powerpc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/Makefile +2 -2
@@ -102,8 +102,8 @@ CFLAGS += $(call cc-option,-mno-altivec) # kernel considerably. CFLAGS += $(call cc-option,-funit-at-a-time) -ifndef CONFIG_FSL_BOOKE -CFLAGS += -mstring +ifeq ($(CONFIG_FSL_BOOKE),y) +CFLAGS += -mno-string endif ifeq ($(CONFIG_6xx),y)