From: Paul Mundt Date: Tue, 19 Dec 2006 03:05:17 +0000 (+0900) Subject: sh: Use proper SH-2A CFLAGS on newer compilers. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=702dd80375046d36f892a0f86c83f8549c623b35;p=openwrt%2Fstaging%2Fblogic.git 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 . Signed-off-by: Paul Mundt --- 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)