diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-14 03:58:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-18 01:43:34 -0500 |
commit | 966d905634de4433cea465fdcea19503c4ae260f (patch) | |
tree | 866315805e9a820fedc0904fde53069bdef8cf75 /arch/sparc64 | |
parent | 54cd6ddec77b75e6926d73d263aec72255b24030 (diff) |
[SPARC64]: Add -mtune=ultrasparc3 if possible.
This gives better heuristics for the cost of a multiply (fixed
5 cycles), rather than the 'ultrasparc' setting (variable, and
unpredictable if the second argument is non-constant).
Example code size savings:
text data bss dec hex filename
3823690 304040 448880 4576610 45d562 vmlinux
3824521 304040 448880 4577441 45d8a1 vmlinux.orig
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index 848e33410b43..f0c22f826982 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile | |||
@@ -17,6 +17,7 @@ LDFLAGS := -m elf64_sparc | |||
17 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ | 17 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ |
18 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ | 18 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ |
19 | -Wa,--undeclared-regs | 19 | -Wa,--undeclared-regs |
20 | KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3) | ||
20 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs | 21 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs |
21 | 22 | ||
22 | ifeq ($(CONFIG_MCOUNT),y) | 23 | ifeq ($(CONFIG_MCOUNT),y) |