From: Pavel Roskin Date: Sat, 01 Oct 2005 04:13:58 GMT Subject: Re: [PATCH] Support SPARSE in Makefile, better SPARSE_FLAGS Message-ID: <20051001001358.n59rjyg48400c0kw@webmail.spamcop.net> In-Reply-To: <433DB950.3010909@zytor.com> Quoting "H. Peter Anvin" : > Pavel Roskin wrote: > > > > I know. That's what I'm using in the wrapper (plus -m64 and some > > warnings). But it should be the default. Until then, hassle-free > > sparse support in the Makefile is only possible for the projects that > > already know the architecture (e.g. the Linux kernel). > > > > I think that's debatable. It introduces main-compiler dependencies into > sparse which is undesirable. I see sparse is already moving in this direction. Right now, it's somewhere in the middle, which is quite inconvenient. It hardcodes gcc version numbers but not the architecture. > A much simpler option would be to write a "sparsegcc" script which would > be invoked just like gcc, extract the appropriate macro information > based on options, and then invoke sparse. I guess that's what cgcc is trying to be. Since it also runs the compiler, no special support for cgcc should be needed in Makefile other than using $(CC). -- Regards, Pavel Roskin