diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-08-26 23:07:37 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2018-08-30 20:51:44 -0400 |
commit | 2b52e2a67c86b0714eeae0d2030cb7fc14737626 (patch) | |
tree | 8c4f0897817d4d22865d5337796b9c47c01074a5 | |
parent | c27d0e9045bbbabffdde2bdba74e9971c4194ac4 (diff) |
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>
-rw-r--r-- | arch/arc/Makefile | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index fb026196aaab..99cce77ab98f 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -43,10 +43,7 @@ ifdef CONFIG_ARC_CURR_IN_REG | |||
43 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h | 43 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h |
44 | endif | 44 | endif |
45 | 45 | ||
46 | upto_gcc44 := $(call cc-ifversion, -le, 0404, y) | 46 | cflags-y += -fsection-anchors |
47 | atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y) | ||
48 | |||
49 | cflags-$(atleast_gcc44) += -fsection-anchors | ||
50 | 47 | ||
51 | cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock | 48 | cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock |
52 | cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape | 49 | cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape |
@@ -82,11 +79,6 @@ cflags-$(disable_small_data) += -mno-sdata -fcall-used-gp | |||
82 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian | 79 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mbig-endian |
83 | ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB | 80 | ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB |
84 | 81 | ||
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 | |||
90 | LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) | 82 | LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) |
91 | 83 | ||
92 | # Modules with short calls might break for calls into builtin-kernel | 84 | # Modules with short calls might break for calls into builtin-kernel |