Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
68d8feee
Commit
68d8feee
authored
Aug 07, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: remove gcc mpy heuristics
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
435abb6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
arch/arc/Makefile
arch/arc/Makefile
+1
-16
No files found.
arch/arc/Makefile
View file @
68d8feee
...
...
@@ -25,7 +25,6 @@ ifdef CONFIG_ARC_CURR_IN_REG
LINUXINCLUDE
+=
-include
${src}
/arch/arc/include/asm/current.h
endif
upto_gcc42
:=
$(
call
cc-ifversion,
-le
, 0402, y
)
upto_gcc44
:=
$(
call
cc-ifversion,
-le
, 0404, y
)
atleast_gcc44
:=
$(
call
cc-ifversion,
-ge
, 0404, y
)
atleast_gcc48
:=
$(
call
cc-ifversion,
-ge
, 0408, y
)
...
...
@@ -60,25 +59,11 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
# --build-id w/o "-marclinux". Default arc-elf32-ld is OK
ldflags-$(upto_gcc44)
+=
-marclinux
ARC_LIBGCC
:=
-mA7
cflags-$(CONFIG_ARC_HAS_HW_MPY)
+=
-multcost
=
16
ifndef
CONFIG_ARC_HAS_HW_MPY
cflags-y
+=
-mno-mpy
# newlib for ARC700 assumes MPY to be always present, which is generally true
# However, if someone really doesn't want MPY, we need to use the 600 ver
# which coupled with -mno-mpy will use mpy emulation
# With gcc 4.4.7, -mno-mpy is enough to make any other related adjustments,
# e.g. increased cost of MPY. With gcc 4.2.1 this had to be explicitly hinted
ifeq
($(upto_gcc42),y)
ARC_LIBGCC
:=
-marc600
cflags-y
+=
-multcost
=
30
endif
endif
LIBGCC
:=
$(
shell
$(CC)
$(
ARC_LIBGCC)
$
(
cflags-y
)
--print-libgcc-file-name
)
LIBGCC
:=
$(
shell
$(CC)
$
(
cflags-y
)
--print-libgcc-file-name
)
# Modules with short calls might break for calls into builtin-kernel
KBUILD_CFLAGS_MODULE
+=
-mlong-calls
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment