Skip to content

Commit 2b52e2a

Browse files
masahir0yvineetgarc
authored andcommitted
arc: remove redundant GCC version checks
Commit cafa001 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. With GCC >= 4.6 assumed, 'upto_gcc44' is empty, 'atleast_gcc44' is y. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent c27d0e9 commit 2b52e2a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

arch/arc/Makefile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ ifdef CONFIG_ARC_CURR_IN_REG
4343
LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h
4444
endif
4545

46-
upto_gcc44 := $(call cc-ifversion, -le, 0404, y)
47-
atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y)
48-
49-
cflags-$(atleast_gcc44) += -fsection-anchors
46+
cflags-y += -fsection-anchors
5047

5148
cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock
5249
cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape
@@ -82,11 +79,6 @@ cflags-$(disable_small_data) += -mno-sdata -fcall-used-gp
8279
cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian
8380
ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
8481

85-
# STAR 9000518362: (fixed with binutils shipping with gcc 4.8)
86-
# arc-linux-uclibc-ld (buildroot) or arceb-elf32-ld (EZChip) don't accept
87-
# --build-id w/o "-marclinux". Default arc-elf32-ld is OK
88-
ldflags-$(upto_gcc44) += -marclinux
89-
9082
LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
9183

9284
# Modules with short calls might break for calls into builtin-kernel

0 commit comments

Comments
 (0)