diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-12-18 22:05:17 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-02-12 20:54:43 -0500 |
commit | 702dd80375046d36f892a0f86c83f8549c623b35 (patch) | |
tree | a5b2114d64f00164ffce8591de7e266bb097e3ba /arch/sh | |
parent | f413d0d9fa7abcecc40e115cf4aead372d164a75 (diff) |
sh: Use proper SH-2A CFLAGS on newer compilers.
-m2 doesn't end up working particularly well when we've got a constrained
toolchain target. Switch to the same semantics used by SH-4A to attempt
to get it right. Spotted by Alex Song <songqf9@yahoo.ca>.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile index c1dbef212634..4903c7c665a9 100644 --- a/arch/sh/Makefile +++ b/arch/sh/Makefile | |||
@@ -35,6 +35,7 @@ endif | |||
35 | endif | 35 | endif |
36 | 36 | ||
37 | cflags-$(CONFIG_CPU_SH2) := -m2 | 37 | cflags-$(CONFIG_CPU_SH2) := -m2 |
38 | cflags-$(CONFIG_CPU_SH2A) := -m2a $(call cc-option,-m2a-nofpu,) | ||
38 | cflags-$(CONFIG_CPU_SH3) := -m3 | 39 | cflags-$(CONFIG_CPU_SH3) := -m3 |
39 | cflags-$(CONFIG_CPU_SH4) := -m4 \ | 40 | cflags-$(CONFIG_CPU_SH4) := -m4 \ |
40 | $(call cc-option,-mno-implicit-fp,-m4-nofpu) | 41 | $(call cc-option,-mno-implicit-fp,-m4-nofpu) |