Skip to content

Commit 68d8fee

Browse files
committed
ARC: remove gcc mpy heuristics
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 435abb6 commit 68d8fee

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎arch/arc/Makefile‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ ifdef CONFIG_ARC_CURR_IN_REG
2525
LINUXINCLUDE += -include ${src}/arch/arc/include/asm/current.h
2626
endif
2727

28-
upto_gcc42 := $(call cc-ifversion, -le, 0402, y)
2928
upto_gcc44 := $(call cc-ifversion, -le, 0404, y)
3029
atleast_gcc44 := $(call cc-ifversion, -ge, 0404, y)
3130
atleast_gcc48 := $(call cc-ifversion, -ge, 0408, y)
@@ -60,25 +59,11 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
6059
# --build-id w/o "-marclinux". Default arc-elf32-ld is OK
6160
ldflags-$(upto_gcc44) += -marclinux
6261

63-
ARC_LIBGCC := -mA7
64-
cflags-$(CONFIG_ARC_HAS_HW_MPY) += -multcost=16
65-
6662
ifndef CONFIG_ARC_HAS_HW_MPY
6763
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
7964
endif
8065

81-
LIBGCC := $(shell $(CC) $(ARC_LIBGCC) $(cflags-y) --print-libgcc-file-name)
66+
LIBGCC := $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
8267

8368
# Modules with short calls might break for calls into builtin-kernel
8469
KBUILD_CFLAGS_MODULE += -mlong-calls

0 commit comments

Comments
 (0)