lkml.org 
[lkml]   [2012]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 001/120] mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it
    Date
    3.4-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Geert Uytterhoeven <geert@linux-m68k.org>

    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>

    ---
    arch/mn10300/Makefile | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- 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)



    \
     
     \ /
      Last update: 2012-10-11 03:41    [W:3.285 / U:0.736 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site