On Fri, Oct 20, 2017 at 3:39 AM, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > My point is: if "when needed" means "when sparse developpers > need to debug something" then I really think all this is not needed > as the dev can very well build the executable he needs, with the > options he needs, use his own workflow, ... > >> Take the ptrlist ref count checking for example. I image have >> sparse --check-ptrlist, which will invoke dbg-sparse to do the >> checking. I expect the distro will include dbg-sparse as part >> of the sparse package as well. > > Really? Are the distros interested in this sort of things? Is there > a real need for it? Who do you really think will use this? To get back on this. I think we user report sparse bugs. We can ask them to run debug version of sparse to report or catch more bugs. For example. The default version of sparse does not have the ptrlist nest modify detect feature. The debug version of sparse has. It is actually hard to ask user to check out a git version of sparse, build it with debug options, then run the test again. With debug version of sparse shipped as part of sparse, this can be simplified. > >> The end result is that. The user of sparse, not sparse developers, >> can invoke sparse with those extra verification (at cost of slow >> down sparse) on the custom input source without modify and >> recompile sparse. > > Yes *can* ... but will they? > Why isn't there a dbg-gcc, dbg-bash, ... ? If we install debug version and invoke them properly, I don't see why distro will not take it. Debug version of clang exist. It just not everybody use it. I don't see a need to for debug version of bash. Because sparse doing optimization and transformation etc. It is very delicate. As long as the debug version does provide some value, I think it is fine to include them as part of the binary. > > If you have a sort of config file, or anything allowing to adapt things > to your needs, you want at least to have a dot file for it. > But for a project using git, you also want that the file doesn't interfer > with git status but also with git clean (including git clean -x). I think that is why local.mk was in .gitignore. For my usage case, there is clearly need that I want some per host config to plug into the Makefile. > Yes *can* ... > Same questions: who will use this and when? Are extra binaries and > duplicated build rules a good answer for this? Again, it is for the user who report sparse bugs. > More broadly: what problem do you try to solve with these patches? I want to include the ptrlist nest modify detect patch into sparse. > What values do these patches bring to sparse? See above. > Does sparse need these patches? I think so. 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