mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 5 Oct 2012 00:11:13 +0000 (17:11 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:49:33 +0000 (03:49 +0100)
commit904e3e1af742e8893f257991aff8eafcfb48e73f
treeca12a40d87a7a2b629f2d4a26033a9d3a5d64669
parent250c7501a05653cd581be4f0ae74f72e74ae6e5e
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it

commit 9957423f035c2071f6d1c5d2f095cdafbeb25ad7 upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/mn10300/Makefile