Re: [PATCH v2] implement constant-folding in __builtin_bswap*()

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

 



On Tue, Nov 22, 2016 at 7:13 PM, Christopher Li <sparse@xxxxxxxxxxx> wrote:
> On Mon, Nov 21, 2016 at 5:45 PM, Johannes Berg
> <johannes@xxxxxxxxxxxxxxxx> wrote:
>> Yes, that'd make some sense. I have no idea how to pull it off though
>
> I take a brief look.
>
> It seems that you need to implement a symbol with ".expand" implement as
> "expand_bswap", similar to "expand_constant_p".

Never mind that, I just find out expand stage happen after the evaluation
stage. The warning happen in the evaluation stage. It will need to make some
plan change to get it right.

Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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