On Fri, Sep 1, 2017 at 3:02 AM, Josh Triplett <josh@xxxxxxxxxxxxxxxx> wrote: >> First of all. It is not very trivial to teach sparse about the architecture >> stuff. To my mind, we need to move all the cgcc logic into sparse. > > Related to that: while it would mean we couldn't necessarily just rely > entirely on GCC's definitions for a target platform, I think in an ideal > world we could have a sparse binary that understood *all* target > platforms at once, such that you could ask Sparse on x86_64 to "compile" Yes, that is what I want to have. It is list as one of the project in project idea document as well. I have a related question. How do we test the different architecture handling without actually run sparse on different platform? I am thinking maybe using gcc cross platform compiler and compare some macro against the sparse one. > as though targeting any arbitrary architecture. That would also have the > major advantage of making it easy to run the Sparse testsuite for > *every* target architecture without needing compilers for every such > architecture. Another way to fix the test suite for now would be let testsuite specify using cgcc instead of sparse directly, for the test source that needs it. That will buy us some time. Fixing sparse properly in the long term obvious would be better. 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