mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mn10300: Only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
@ 2012-07-13 19:38 Geert Uytterhoeven
  0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2012-07-13 19:38 UTC (permalink / raw)
  To: David Howells, Koichi Yasutake, Andrew Morton
  Cc: Tony Breeds, linux-am33-list, linux-kernel, Geert Uytterhoeven

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>
---
Only compile-tested, not run-tested due to lack of hardware.

Is this -mmem-funcs option mandatory to get a bootable kernel?
If no, please take/ack this patch so we can get one more architecture
green.
If yes, we need support for it in upstream gcc. But even in that case,
it would be nice to take/ack it so we can detect future build regressions.

 arch/mn10300/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mn10300/Makefile b/arch/mn10300/Makefile
index 33188b6..a3d0fef 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)
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-13 19:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-13 19:38 [PATCH] mn10300: Only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®