Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3fda57f authored by Greg Hackmann's avatar Greg Hackmann Committed by Bryan Huntsman
Browse files

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: default avatarGreg Hackmann <ghackmann@google.com>
Git-commit: bdc3dd9f0a5cd2c3d36a95621199b4a10fa799bc
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 0489ba2a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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)