Skip to content

Commit ad40bda

Browse files
zx2c4wildea01
authored andcommitted
arm64: support __int128 with clang
Commit fb87227 ("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>
1 parent 9478f19 commit ad40bda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm64/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ KBUILD_AFLAGS += $(lseinstr) $(brokengasinst)
5656
KBUILD_CFLAGS += $(call cc-option,-mabi=lp64)
5757
KBUILD_AFLAGS += $(call cc-option,-mabi=lp64)
5858

59+
ifeq ($(cc-name),clang)
60+
KBUILD_CFLAGS += -DCONFIG_ARCH_SUPPORTS_INT128
61+
else
5962
KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128)
63+
endif
6064

6165
ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
6266
KBUILD_CPPFLAGS += -mbig-endian

0 commit comments

Comments
 (0)