Re: [PATCH] Add -gcc-version option

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

 



On Wed, Jul 19, 2017 at 6:07 AM, Christopher Li <sparse@xxxxxxxxxxx> wrote:

> When you specify the gcc version, there is also implicit version
> specific behavior
> go with it. I can see user file bugs said I give sparse gcc version X,
> but gcc has
> macro Y in X. That is not the case with sparse, that is a bug. I don't
> want to give
> the user false impression that sparse can set a gcc version and simulate the gcc
> version specific behavior.

Makes sense.

> It is simpler just put the version specific macro into a header file and ask
> sparse to include it. You should be able to add that to command line as well.
>
> Chris

I did not realize that sparse supports -include. It turns out it does,
which is even better than specifying three defines.

I don't see any references to -D or -include in the sparse manual
page. I think they should be documented.

-- 
Regards,
Pavel Roskin
--
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