Skip to content

Commit ee59288

Browse files
masahir0ypalmer-dabbelt
authored andcommitted
riscv: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent f31b8de commit ee59288

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ config ARCH_RV32I
113113
config ARCH_RV64I
114114
bool "RV64I"
115115
select 64BIT
116+
select ARCH_SUPPORTS_INT128 if GCC_VERSION >= 50000
116117
select HAVE_FUNCTION_TRACER
117118
select HAVE_FUNCTION_GRAPH_TRACER
118119
select HAVE_FTRACE_MCOUNT_RECORD

arch/riscv/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ ifeq ($(CONFIG_ARCH_RV64I),y)
2525

2626
KBUILD_CFLAGS += -mabi=lp64
2727
KBUILD_AFLAGS += -mabi=lp64
28-
29-
KBUILD_CFLAGS += $(call cc-ifversion, -ge, 0500, -DCONFIG_ARCH_SUPPORTS_INT128)
3028

3129
KBUILD_MARCH = rv64im
3230
KBUILD_LDFLAGS += -melf64lriscv

0 commit comments

Comments
 (0)