lkml.org 
[lkml]   [2019]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] powerpc/lib/xor_vmx: Relax frame size for clang
    Date
    When building with clang-8 the frame size limit is hit:

    ../arch/powerpc/lib/xor_vmx.c:119:6: error: stack frame size of 1200 bytes in function '__xor_altivec_5' [-Werror,-Wframe-larger-than=]

    Follow the same approach as commit 9c87156cce5a ("powerpc/xmon: Relax
    frame size for clang") until a proper fix is implemented upstream in
    clang and relax requirement for clang.

    Link: https://github.com/ClangBuiltLinux/linux/issues/563
    Cc: Joel Stanley <joel@jms.id.au>
    Signed-off-by: Mathieu Malaterre <malat@debian.org>
    ---
    arch/powerpc/lib/Makefile | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile
    index c55f9c27bf79..b3f7d64caaf0 100644
    --- a/arch/powerpc/lib/Makefile
    +++ b/arch/powerpc/lib/Makefile
    @@ -58,5 +58,9 @@ obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o

    obj-$(CONFIG_ALTIVEC) += xor_vmx.o xor_vmx_glue.o
    CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec)
    +ifdef CONFIG_CC_IS_CLANG
    +# See https://github.com/ClangBuiltLinux/linux/issues/563
    +CFLAGS_xor_vmx.o += -Wframe-larger-than=4096
    +endif

    obj-$(CONFIG_PPC64) += $(obj64-y)
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-06-21 10:59    [W:2.701 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site