diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-12-19 12:05:17 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-02-13 10:54:43 +0900 |
commit | 702dd80375046d36f892a0f86c83f8549c623b35 (patch) | |
tree | a5b2114d64f00164ffce8591de7e266bb097e3ba /arch | |
parent | f413d0d9fa7abcecc40e115cf4aead372d164a75 (diff) | |
download | blackbird-op-linux-702dd80375046d36f892a0f86c83f8549c623b35.tar.gz blackbird-op-linux-702dd80375046d36f892a0f86c83f8549c623b35.zip |
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')
-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 endif cflags-$(CONFIG_CPU_SH2) := -m2 +cflags-$(CONFIG_CPU_SH2A) := -m2a $(call cc-option,-m2a-nofpu,) cflags-$(CONFIG_CPU_SH3) := -m3 cflags-$(CONFIG_CPU_SH4) := -m4 \ $(call cc-option,-mno-implicit-fp,-m4-nofpu) |