Skip to content

Commit f3a53f7

Browse files
committed
arm64: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Will Deacon <[email protected]> Reviewed-by: Kees Cook <[email protected]>
1 parent 469cb73 commit f3a53f7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

arch/arm64/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ config ARM64
4343
select ARCH_USE_QUEUED_RWLOCKS
4444
select ARCH_SUPPORTS_MEMORY_FAILURE
4545
select ARCH_SUPPORTS_ATOMIC_RMW
46+
select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000 || CC_IS_CLANG
4647
select ARCH_SUPPORTS_NUMA_BALANCING
4748
select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
4849
select ARCH_WANT_FRAME_POINTERS

arch/arm64/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ 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
62-
KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128)
63-
endif
64-
6559
ifeq ($(CONFIG_CPU_BIG_ENDIAN), y)
6660
KBUILD_CPPFLAGS += -mbig-endian
6761
CHECKFLAGS += -D__AARCH64EB__

0 commit comments

Comments
 (0)