Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=54cd6ddec77b75e6926d73d263aec72255b24030
Commit:     54cd6ddec77b75e6926d73d263aec72255b24030
Parent:     0f78e7542e94e8f64ed393289d7bfac032634620
Author:     David S. Miller <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 14 00:37:21 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Feb 17 22:42:45 2008 -0800

    [SPARC64]: Remove Makefile code for ancient gcc and binutils.
    
    The kernel hasn't supported the compilers which need these tests
    for years.
    
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 arch/sparc64/Makefile |   35 ++++-------------------------------
 1 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile
index 01159cb..848e334 100644
--- a/arch/sparc64/Makefile
+++ b/arch/sparc64/Makefile
@@ -12,39 +12,12 @@ CHECKFLAGS  += -D__sparc__ -D__sparc_v9__ -m64
 
 CPPFLAGS_vmlinux.lds += -Usparc
 
-CC             := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null 
>/dev/null 2>&1; then echo $(CC); else echo sparc64-linux-gcc; fi )
-
-NEW_GCC := $(call cc-option-yn, -m64 -mcmodel=medlow)
-NEW_GAS := $(shell if $(LD) -V 2>&1 | grep 'elf64_sparc' > /dev/null; then 
echo y; else echo n; fi)
-UNDECLARED_REGS := $(shell if $(CC) -c -x assembler /dev/null -Wa,--help | 
grep undeclared-regs > /dev/null; then echo y; else echo n; fi; )
-
-ifneq ($(NEW_GAS),y)
-AS             = sparc64-linux-as
-LD             = sparc64-linux-ld
-NM             = sparc64-linux-nm
-AR             = sparc64-linux-ar
-RANLIB         = sparc64-linux-ranlib
-else
-AS             := $(AS) -64
 LDFLAGS                := -m elf64_sparc
-endif
 
-ifneq ($(UNDECLARED_REGS),y)
-CC_UNDECL      =
-else
-CC_UNDECL      = -Wa,--undeclared-regs
-AS             := $(AS) --undeclared-regs
-endif
-
-ifneq ($(NEW_GCC),y)
-  KBUILD_CFLAGS += -pipe -mno-fpu -mtune=ultrasparc -mmedlow \
-           -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare
-else
-  KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
-           -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
-           $(CC_UNDECL)
-  KBUILD_AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL)
-endif
+KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \
+       -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \
+       -Wa,--undeclared-regs
+KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs
 
 ifeq ($(CONFIG_MCOUNT),y)
   KBUILD_CFLAGS += -pg
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to