Skip to content

Commit

Permalink
ANDROID: HACK: arm64, LLVMLinux: use -mno-implicit-float
Browse files Browse the repository at this point in the history
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 <[email protected]>
Git-commit: bdc3dd9f0a5cd2c3d36a95621199b4a10fa799bc
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
Signed-off-by: Channagoud Kadabi <[email protected]>
  • Loading branch information
greghackmann authored and Bryan Huntsman committed Jun 15, 2018
1 parent 0489ba2 commit f3fda57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f3fda57

Please sign in to comment.