mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
authorGeert Uytterhoeven <[email protected]>
Fri, 5 Oct 2012 00:11:13 +0000 (17:11 -0700)
committerLinus Torvalds <[email protected]>
Fri, 5 Oct 2012 18:04:36 +0000 (03:04 +0900)
commit9957423f035c2071f6d1c5d2f095cdafbeb25ad7
tree6aef56b9b9a82496466de7fd9a619bcaff3f576d
parent9321d526dd731588f09508af48de50041785a26a
mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it

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 <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Cc: David Howells <[email protected]>
Cc: Koichi Yasutake <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/mn10300/Makefile