diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-07-11 20:48:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-07-11 20:48:54 -0400 |
commit | aab1b16a61d653173b1c5f158c51ec08dd6605b0 (patch) | |
tree | a81a3c67cfb132f0a3834d15a6fbe8285701ee38 /arch/sh/Makefile | |
parent | 1b898040e214d1f5acd3baf14f07ef5f610d5c8a (diff) |
sh: Don't let SH-4A clobber SH-4 CFLAGS.
Older compilers don't support the -m4a{,nofpu} flags, which has the
side-effect of allowing FP operations to be emitted. Switch this to
incremental tuning, so we at least have -m4-nofpu as a fallback for
the gcc3 toolchains.
Without this, certain modules emit references to __udivsi3_i4 and
__sdivsi3_i4.
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r-- | arch/sh/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index c7a8e1f0c6b6..77fecc62a056 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -35,12 +35,12 @@ endif | |||
35 | endif | 35 | endif |
36 | 36 | ||
37 | cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,) | 37 | cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,) |
38 | cflags-$(CONFIG_CPU_SH2A) := $(call cc-option,-m2a,) \ | 38 | cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \ |
39 | $(call cc-option,-m2a-nofpu,) | 39 | $(call cc-option,-m2a-nofpu,) |
40 | cflags-$(CONFIG_CPU_SH3) := $(call cc-option,-m3,) | 40 | cflags-$(CONFIG_CPU_SH3) := $(call cc-option,-m3,) |
41 | cflags-$(CONFIG_CPU_SH4) := $(call cc-option,-m4,) \ | 41 | cflags-$(CONFIG_CPU_SH4) := $(call cc-option,-m4,) \ |
42 | $(call cc-option,-mno-implicit-fp,-m4-nofpu) | 42 | $(call cc-option,-mno-implicit-fp,-m4-nofpu) |
43 | cflags-$(CONFIG_CPU_SH4A) := $(call cc-option,-m4a,) \ | 43 | cflags-$(CONFIG_CPU_SH4A) += $(call cc-option,-m4a,) \ |
44 | $(call cc-option,-m4a-nofpu,) | 44 | $(call cc-option,-m4a-nofpu,) |
45 | 45 | ||
46 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mb | 46 | cflags-$(CONFIG_CPU_BIG_ENDIAN) += -mb |