Hello! On Fri, 2006-12-22 at 01:47 -0800, Christopher Li wrote: > On Fri, Dec 22, 2006 at 02:36:48AM -0500, Pavel Roskin wrote: > > On Fri, 2006-12-22 at 02:06 -0500, Pavel Roskin wrote: > > > It seems to me that the existing add_pre_buffer() mechanism can be used > > > instead. I'm just a bit worried why it wasn't done like this in the > > > first place. > > I believe the reason it is not in the pre buffer is that it should first > search the current directory instead of the source file directory. The command > line -include has some subtle differences with #include "filename" Then maybe we need some variation of #include, e.g. #include_cmdline. And while at that, I think -imacros should be processed slightly differently. > > There was a reason to worry. Now create_builtin_stream() is run after > > the includes have been processed, so that e.g. the Linux compiler.h > > tells me that my compiler is too old (because it was included from the > > command line before __GNUC__ was defined). > > That is the other reason as well :-) > > Can you please try this patch and see if it works for you? I have tried it in current (svn) MadWifi, and the output is much more agreeable, so I think the patch is working. However, I would prefer that we don't use fixed size arrays. It would be much better in the long term to use the existing "code generator". It would be a more uniform and scalable approach. Besides, the generated code could be dumped for debugging purposes. By the way, the current MadWifi is a treasure trove for anyone looking to improve sparse. My impression is that most if not all reported problems are bogus. -- 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