diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-12-23 01:43:23 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-04-24 20:07:55 +0200 |
commit | ad40bdafb495f30e5af837e15b3c2a4cb2176e47 (patch) | |
tree | 96890db0c65d937a1a0ad89e6c110c92d3f8e941 /arch/arm64/Makefile | |
parent | arm64: only advance singlestep for user instruction traps (diff) | |
download | linux-ad40bdafb495f30e5af837e15b3c2a4cb2176e47.tar.xz linux-ad40bdafb495f30e5af837e15b3c2a4cb2176e47.zip |
arm64: support __int128 with clang
Commit fb8722735f50 ("arm64: support __int128 on gcc 5+") added support
for arm64 __int128 with gcc with a version-conditional, but neglected to
enable this for clang, which in fact appears to support aarch64 __int128.
This commit therefore enables it if the compiler is clang, using the
same type of makefile conditional used elsewhere in the tree.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/Makefile')
-rw-r--r-- | arch/arm64/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 15402861bb59..87f7d2f9f17c 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -56,7 +56,11 @@ KBUILD_AFLAGS += $(lseinstr) $(brokengasinst) KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) +ifeq ($(cc-name),clang) +KBUILD_CFLAGS += -DCONFIG_ARCH_SUPPORTS_INT128 +else KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128) +endif ifeq ($(CONFIG_CPU_BIG_ENDIAN), y) KBUILD_CPPFLAGS += -mbig-endian |