]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 21 Jul 2012 00:53:46 +0000 (10:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Aug 2012 03:24:49 +0000 (13:24 +1000)
It seems the current (gcc 4.6.3) no longer provides this so make it
conditional.

As reported by Tony before, the mn10300 architecture cross-compiles with
gcc-4.6.3 if -mmem-funcs is not added to KBUILD_CFLAGS.

Reported-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mn10300/Makefile

index 33188b6e81e4509d060aab524de1d9ac5a54d67d..a3d0fef3b126ba859e5fe0459b1e12658cbebe69 100644 (file)
@@ -26,7 +26,7 @@ CHECKFLAGS    +=
 PROCESSOR      := unset
 UNIT           := unset
 
-KBUILD_CFLAGS  += -mam33 -mmem-funcs -DCPU=AM33
+KBUILD_CFLAGS  += -mam33 -DCPU=AM33 $(call cc-option,-mmem-funcs,)
 KBUILD_AFLAGS  += -mam33 -DCPU=AM33
 
 ifeq ($(CONFIG_MN10300_CURRENT_IN_E2),y)