diff options
author | Anton Blanchard <anton@samba.org> | 2015-11-25 18:45:49 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-07-05 09:58:53 -0400 |
commit | 9ddf0075f9184f1e1dabf7bfea6397b00ee17e46 (patch) | |
tree | 72f2150c0a57269fa6158201fb1c2ae90716cf72 | |
parent | e2be23712a9c8e3710c9e2684a3204bd20c685d6 (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/Makefile | 2 |
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 | |||
221 | endif | 221 | endif |
222 | 222 | ||
223 | cpu-as-$(CONFIG_4xx) += -Wa,-m405 | 223 | cpu-as-$(CONFIG_4xx) += -Wa,-m405 |
224 | cpu-as-$(CONFIG_ALTIVEC) += -Wa,-maltivec | 224 | cpu-as-$(CONFIG_ALTIVEC) += $(call as-option,-Wa$(comma)-maltivec) |
225 | cpu-as-$(CONFIG_E200) += -Wa,-me200 | 225 | cpu-as-$(CONFIG_E200) += -Wa,-me200 |
226 | 226 | ||
227 | KBUILD_AFLAGS += $(cpu-as-y) | 227 | KBUILD_AFLAGS += $(cpu-as-y) |