diff options
author | David S. Miller <davem@davemloft.net> | 2008-02-14 03:37:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-18 01:42:45 -0500 |
commit | 54cd6ddec77b75e6926d73d263aec72255b24030 (patch) | |
tree | 3070c25f4ce5a1ed44cb5594f6ff5bd29c864a3a /arch/sparc64/Makefile | |
parent | 0f78e7542e94e8f64ed393289d7bfac032634620 (diff) |
[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 <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/Makefile')
-rw-r--r-- | arch/sparc64/Makefile | 35 |
1 files changed, 4 insertions, 31 deletions
diff --git a/arch/sparc64/Makefile b/arch/sparc64/Makefile index 01159cb5f16d..848e33410b43 100644 --- a/arch/sparc64/Makefile +++ b/arch/sparc64/Makefile | |||
@@ -12,39 +12,12 @@ CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -m64 | |||
12 | 12 | ||
13 | CPPFLAGS_vmlinux.lds += -Usparc | 13 | CPPFLAGS_vmlinux.lds += -Usparc |
14 | 14 | ||
15 | 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 ) | ||
16 | |||
17 | NEW_GCC := $(call cc-option-yn, -m64 -mcmodel=medlow) | ||
18 | NEW_GAS := $(shell if $(LD) -V 2>&1 | grep 'elf64_sparc' > /dev/null; then echo y; else echo n; fi) | ||
19 | UNDECLARED_REGS := $(shell if $(CC) -c -x assembler /dev/null -Wa,--help | grep undeclared-regs > /dev/null; then echo y; else echo n; fi; ) | ||
20 | |||
21 | ifneq ($(NEW_GAS),y) | ||
22 | AS = sparc64-linux-as | ||
23 | LD = sparc64-linux-ld | ||
24 | NM = sparc64-linux-nm | ||
25 | AR = sparc64-linux-ar | ||
26 | RANLIB = sparc64-linux-ranlib | ||
27 | else | ||
28 | AS := $(AS) -64 | ||
29 | LDFLAGS := -m elf64_sparc | 15 | LDFLAGS := -m elf64_sparc |
30 | endif | ||
31 | 16 | ||
32 | ifneq ($(UNDECLARED_REGS),y) | 17 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ |
33 | CC_UNDECL = | 18 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ |
34 | else | 19 | -Wa,--undeclared-regs |
35 | CC_UNDECL = -Wa,--undeclared-regs | 20 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc -Wa,--undeclared-regs |
36 | AS := $(AS) --undeclared-regs | ||
37 | endif | ||
38 | |||
39 | ifneq ($(NEW_GCC),y) | ||
40 | KBUILD_CFLAGS += -pipe -mno-fpu -mtune=ultrasparc -mmedlow \ | ||
41 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare | ||
42 | else | ||
43 | KBUILD_CFLAGS += -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow \ | ||
44 | -ffixed-g4 -ffixed-g5 -fcall-used-g7 -Wno-sign-compare \ | ||
45 | $(CC_UNDECL) | ||
46 | KBUILD_AFLAGS += -m64 -mcpu=ultrasparc $(CC_UNDECL) | ||
47 | endif | ||
48 | 21 | ||
49 | ifeq ($(CONFIG_MCOUNT),y) | 22 | ifeq ($(CONFIG_MCOUNT),y) |
50 | KBUILD_CFLAGS += -pg | 23 | KBUILD_CFLAGS += -pg |