From 1210d2329b31b26ae5204b6d952e679ee697d8da Mon Sep 17 00:00:00 2001 From: Greg Hackmann Date: Tue, 29 Nov 2016 12:59:14 -0800 Subject: [PATCH] ANDROID: HACK: arm64, LLVMLinux: use -mno-implicit-float LLVM issue 30792 causes clang's AArch64 backend to fail compiling arch/arm64/crypto/aes-ce-cipher.c. Replacing -mgeneral-regs-only with -mno-implicit-float is the suggested workaround. Change-Id: I229c5e9cb7306391afcc1819604662db54216a99 Signed-off-by: Greg Hackmann Git-commit: bdc3dd9f0a5cd2c3d36a95621199b4a10fa799bc Git-repo: https://android.googlesource.com/kernel/common/ Signed-off-by: Satya Durga Srinivasu Prabhala Signed-off-by: Channagoud Kadabi Signed-off-by: Raghavendra Rao Ananta --- arch/arm64/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index b025304bde46..d4894c708af9 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -49,7 +49,12 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable) endif endif -KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst) +ifdef CONFIG_CC_IS_CLANG +KBUILD_CFLAGS += -mno-implicit-float +else +KBUILD_CFLAGS += -mgeneral-regs-only +endif +KBUILD_CFLAGS += $(lseinstr) $(brokengasinst) KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)