]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sh: Use proper SH-2A CFLAGS on newer compilers.
authorPaul Mundt <lethal@linux-sh.org>
Tue, 19 Dec 2006 03:05:17 +0000 (12:05 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 13 Feb 2007 01:54:43 +0000 (10:54 +0900)
-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>
arch/sh/Makefile

index c1dbef21263430f68ba594d2b3d893063732cc11..4903c7c665a9a828ce6c0da3bef4820d248396d2 100644 (file)
@@ -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)