aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2015-11-25 18:45:49 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-05 09:58:53 -0400
commit9ddf0075f9184f1e1dabf7bfea6397b00ee17e46 (patch)
tree72f2150c0a57269fa6158201fb1c2ae90716cf72
parente2be23712a9c8e3710c9e2684a3204bd20c685d6 (diff)
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 <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/Makefile2
1 files changed, 1 insertions, 1 deletions
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
221endif 221endif
222 222
223cpu-as-$(CONFIG_4xx) += -Wa,-m405 223cpu-as-$(CONFIG_4xx) += -Wa,-m405
224cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec 224cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec)
225cpu-as-$(CONFIG_E200) += -Wa,-me200 225cpu-as-$(CONFIG_E200) += -Wa,-me200
226 226
227KBUILD_AFLAGS += $(cpu-as-y) 227KBUILD_AFLAGS += $(cpu-as-y)