ANDROID: HACK: arm64, LLVMLinux: use -mno-implicit-float

LLVM bug 30792 causes clang's AArch64 backend to crash 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 <ghackmann@google.com>
Git-commit: bdc3dd9f0a5cd2c3d36a95621199b4a10fa799bc
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
This commit is contained in:
Greg Hackmann 2016-11-29 12:59:14 -08:00 committed by Bryan Huntsman
parent 0489ba2a13
commit f3fda57f6a

View file

@ -49,7 +49,12 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable)
endif
endif
KBUILD_CFLAGS += -mgeneral-regs-only $(lseinstr) $(brokengasinst)
ifeq ($(cc-name),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)