diff mbox

powerpc: Avoid -maltivec when using clang integrated assembler

Message ID 1448495149-25024-1-git-send-email-anton@samba.org (mailing list archive)
State Accepted
Headers show

Commit Message

Anton Blanchard Nov. 25, 2015, 11:45 p.m. UTC
Check the assembler supports -maltivec by wrapping it with
call as-option.

Signed-off-by: Anton Blanchard <anton@samba.org>
---
 arch/powerpc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Ellerman July 5, 2016, 2:10 p.m. UTC | #1
On Wed, 2015-25-11 at 23:45:49 UTC, Anton Blanchard wrote:
> Check the assembler supports -maltivec by wrapping it with
> call as-option.
> 
> Signed-off-by: Anton Blanchard <anton@samba.org>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/9ddf0075f9184f1e1dabf7bfea

cheers
diff mbox

Patch

diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile
index 96efd82..76a315d 100644
--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -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)