diff options
author | Anton Blanchard <anton@samba.org> | 2012-04-17 14:44:17 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-04-30 01:37:26 -0400 |
commit | 894a65c857b2e595da1c65d1ad1a7c559ac88c8d (patch) | |
tree | 325a75924939e8a56728e63a5ea905d770c8913e | |
parent | 82a8508406906a39ed04cb59d83b1703d78dc8b3 (diff) |
powerpc: Remove altivec fix for gcc versions before 4.0
Now we require gcc 4.0 on 64-bit we can remove the pre gcc 4.0
-maltivec workaround.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/Makefile | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 68455ddb63b..6ee3beb4d26 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -77,18 +77,8 @@ CPP = $(CC) -E $(KBUILD_CFLAGS) | |||
77 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ | 77 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ |
78 | 78 | ||
79 | ifeq ($(CONFIG_PPC64),y) | 79 | ifeq ($(CONFIG_PPC64),y) |
80 | GCC_BROKEN_VEC := $(call cc-ifversion, -lt, 0400, y) | ||
81 | |||
82 | ifeq ($(CONFIG_POWER4_ONLY),y) | 80 | ifeq ($(CONFIG_POWER4_ONLY),y) |
83 | ifeq ($(CONFIG_ALTIVEC),y) | ||
84 | ifeq ($(GCC_BROKEN_VEC),y) | ||
85 | KBUILD_CFLAGS += $(call cc-option,-mcpu=970) | ||
86 | else | ||
87 | KBUILD_CFLAGS += $(call cc-option,-mcpu=power4) | ||
88 | endif | ||
89 | else | ||
90 | KBUILD_CFLAGS += $(call cc-option,-mcpu=power4) | 81 | KBUILD_CFLAGS += $(call cc-option,-mcpu=power4) |
91 | endif | ||
92 | else | 82 | else |
93 | KBUILD_CFLAGS += $(call cc-option,-mtune=power4) | 83 | KBUILD_CFLAGS += $(call cc-option,-mtune=power4) |
94 | endif | 84 | endif |