diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2012-10-04 17:11:13 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-13 05:28:02 +0900 |
commit | 36cc7838f9d8ccec782f6e44f2131ef446438cd4 (patch) | |
tree | 03d2c408344b72ef1e5c7eb9f36b196a1ba449b9 /arch/mn10300 | |
parent | 24e842ae6cb8179126246ebcbfc477b36a7b8719 (diff) | |
download | kernel_samsung_tuna-36cc7838f9d8ccec782f6e44f2131ef446438cd4.zip kernel_samsung_tuna-36cc7838f9d8ccec782f6e44f2131ef446438cd4.tar.gz kernel_samsung_tuna-36cc7838f9d8ccec782f6e44f2131ef446438cd4.tar.bz2 |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mn10300')
-rw-r--r-- | arch/mn10300/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mn10300/Makefile b/arch/mn10300/Makefile index 7120282..3eb4a52 100644 --- a/arch/mn10300/Makefile +++ b/arch/mn10300/Makefile @@ -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) |