git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Support SPARSE in Makefile, better SPARSE_FLAGS

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Sep 30, 2005, 19:19 UTC
Message-ID
<433D8FA6.2080808@zytor.com>
In-Reply-To
<1128087662.14543.14.camel@dv>
Pavel Roskin wrote:
Show 5 quoted lines
> 
> I hate to say that, but a better alternative is to fix sparse to act
> like the native compiler by default (possibly with options to imitate
> other architectures or to be fully arch-neutral).
> 
$(CC) $(CFLAGS) -E -dM -x c /dev/null -o builtin.h

... will output a file containing all the buildin macros that you can feed to sparse with -include.

Replacing -x c with, say, -x c++ gives you the builtins for C++; including $(CFLAGS) gives the appropriate set of macros for any particular combination of options (which can affect the builtin macro set.)

	-hpa
Previous: Pavel RoskinNext: Pavel Roskin
Message 4 of 7 in “Support SPARSE in Makefile, better SPARSE_FLAGS”
  1. Support SPARSE in Makefile, better SPARSE_FLAGSPavel Roskin, Sep 29, 2005
  2. Junio C HamanoSep 30, 2005
  3. Pavel RoskinSep 30, 2005
  4. H. Peter AnvinSep 30, 2005
  5. Pavel RoskinSep 30, 2005
  6. H. Peter AnvinSep 30, 2005
  7. Pavel RoskinOct 1, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.