[SPARC64]: Add -mtune=ultrasparc3 if possible.
[linux-2.6.git] / arch / sparc64 / Makefile
index 848e334..f0c22f8 100644 (file)
@@ -17,6 +17,7 @@ LDFLAGS               := -m elf64_sparc
 KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
        -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
        -Wa,--undeclared-regs
+KBUILD_CFLAGS += $(call cc-option,-mtune=ultrasparc3)
 KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs
 
 ifeq ($(CONFIG_MCOUNT),y)