Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arc: remove redundant GCC version checks

Commit cafa0010cd51 ("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>

authored by

Masahiro Yamada and committed by
Vineet Gupta
2b52e2a6 c27d0e90

+1 -9
+1 -9
arch/arc/Makefile
··· 43 43 LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h 44 44 endif 45 45 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 50 47 51 48 cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock 52 49 cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape ··· 78 81 79 82 cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian 80 83 ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB 81 - 82 - # STAR 9000518362: (fixed with binutils shipping with gcc 4.8) 83 - # arc-linux-uclibc-ld (buildroot) or arceb-elf32-ld (EZChip) don't accept 84 - # --build-id w/o "-marclinux". Default arc-elf32-ld is OK 85 - ldflags-$(upto_gcc44) += -marclinux 86 84 87 85 LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) 88 86