On Mon, Jun 18, 2012 at 5:40 AM, <kosaki.motohiro@xxxxxxxxx> wrote: > From: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxx> > > Currently, "-include" behavior is far different between sparse > and gcc. gcc can compile following testcase. but sparse can't. > > This patch fixes it. > Thanks for the patch. The patch has some small problem though: There are some other user of the cmdline_include array. Remove it will disable those options. Also the include order of the header file is now reversed: $ gcc -include a.h -include b.h foo.c will include a.h then b.h. Your patch will include b.h then a.h. Granted, the "isystem" has the same bug here too. 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