diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-08-07 19:24:47 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-10-13 05:16:17 -0400 |
commit | 68d8feee85dd9ff68a2d740c90b08dc4ae2fb8e5 (patch) | |
tree | e6479489b0b0518c4cbe99a041a16710b0efa656 /arch/arc | |
parent | 435abb6daf310b4c1d681097887ea7239c310732 (diff) |
ARC: remove gcc mpy heuristics
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/Makefile | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 8c0b1aa56f7e..10bc3d4e8a44 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile | |||
@@ -25,7 +25,6 @@ ifdef CONFIG_ARC_CURR_IN_REG | |||
25 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h | 25 | LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h |
26 | endif | 26 | endif |
27 | 27 | ||
28 | upto_gcc42 := $(call cc-ifversion, -le, 0402, y) | ||
29 | upto_gcc44 := $(call cc-ifversion, -le, 0404, y) | 28 | upto_gcc44 := $(call cc-ifversion, -le, 0404, y) |
30 | atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y) | 29 | atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y) |
31 | atleast_gcc48 := $(call cc-ifversion, -ge, 0408, y) | 30 | atleast_gcc48 := $(call cc-ifversion, -ge, 0408, y) |
@@ -60,25 +59,11 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB | |||
60 | # --build-id w/o "-marclinux". Default arc-elf32-ld is OK | 59 | # --build-id w/o "-marclinux". Default arc-elf32-ld is OK |
61 | ldflags-$(upto_gcc44) += -marclinux | 60 | ldflags-$(upto_gcc44) += -marclinux |
62 | 61 | ||
63 | ARC_LIBGCC := -mA7 | ||
64 | cflags-$(CONFIG_ARC_HAS_HW_MPY) += -multcost=16 | ||
65 | |||
66 | ifndef CONFIG_ARC_HAS_HW_MPY | 62 | ifndef CONFIG_ARC_HAS_HW_MPY |
67 | cflags-y += -mno-mpy | 63 | cflags-y += -mno-mpy |
68 | |||
69 | # newlib for ARC700 assumes MPY to be always present, which is generally true | ||
70 | # However, if someone really doesn't want MPY, we need to use the 600 ver | ||
71 | # which coupled with -mno-mpy will use mpy emulation | ||
72 | # With gcc 4.4.7, -mno-mpy is enough to make any other related adjustments, | ||
73 | # e.g. increased cost of MPY. With gcc 4.2.1 this had to be explicitly hinted | ||
74 | |||
75 | ifeq ($(upto_gcc42),y) | ||
76 | ARC_LIBGCC := -marc600 | ||
77 | cflags-y += -multcost=30 | ||
78 | endif | ||
79 | endif | 64 | endif |
80 | 65 | ||
81 | LIBGCC := $(shell $(CC) $(ARC_LIBGCC) $(cflags-y) --print-libgcc-file-name) | 66 | LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name) |
82 | 67 | ||
83 | # Modules with short calls might break for calls into builtin-kernel | 68 | # Modules with short calls might break for calls into builtin-kernel |
84 | KBUILD_CFLAGS_MODULE += -mlong-calls | 69 | KBUILD_CFLAGS_MODULE += -mlong-calls |