Re: building Linux for ARMv7 with llvm breaks sparse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 31, 2022 at 12:17 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Does it all work if we just make the kernel use the normal
>
>   -meabi=gnu
>
> syntax instead?

IOW, just something like this

    --- a/arch/arm/Makefile
    +++ b/arch/arm/Makefile
    @@ -110,7 +110,7 @@ CFLAGS_ABI      +=-funwind-tables
     endif

     ifeq ($(CONFIG_CC_IS_CLANG),y)
    -CFLAGS_ABI += -meabi gnu
    +CFLAGS_ABI += -meabi=gnu
     endif

     ifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y)

that's basically what we do for all the other '-mxyz=abc' cases, so
it's really that use of -meabi that stands out as being the odd man
out.

        Linus



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux