powerpc: Avoid -maltivec when using clang integrated assembler
PATCH 1/1 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 <[email protected]>
--- arch/powerpc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Makefile +1 -1
@@ -206,7 +206,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)
Signature · 1 line
2.5.0
Quoted 4 lines · Anton Blanchard
Check the assembler supports -maltivec by wrapping it with call as-option.
Signed-off-by Anton Blanchard <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/9ddf0075f9184f1e1dabf7bfea
cheers