From: Anton Blanchard Date: Wed, 25 Nov 2015 23:45:49 +0000 (+1100) Subject: powerpc: Avoid -maltivec when using clang integrated assembler X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9ddf0075f9184f1e1dabf7bfea6397b00ee17e46;p=linux-beck.git powerpc: Avoid -maltivec when using clang integrated assembler Check the assembler supports -maltivec by wrapping it with call as-option. Signed-off-by: Anton Blanchard Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 709a22a3e824..b41f4c600a65 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -221,7 +221,7 @@ KBUILD_CFLAGS += -mno-sched-epilog endif cpu-as-$(CONFIG_4xx) += -Wa,-m405 -cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec +cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) cpu-as-$(CONFIG_E200) += -Wa,-me200 KBUILD_AFLAGS += $(cpu-as-y)