aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* cleanup write to argument array hackChristopher Li2006-12-041-3/+7
| | | | | | | | | | | | The sparse interface is a kind of snaky that it change the input argument array. The function sparse() does the same hack just to skip the files. This patch add the ptr list for string. So sparse_initialize will return list of file to compile. The string pointer is not aligned at word boundary. This patch introduce non taged version of the ptr list iteration function. Signed-off-by: Christopher Li <sparse@chrisli.org>
* Handle symbols from "-include" file tooLinus Torvalds2005-11-021-1/+1
| | | | | | Noted by Mitesh Shah Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Update the calling interface to "sparse()".Linus Torvalds2005-08-031-1/+3
| | | | | | | | | | | | | | Start off with sparse_initialize(argc, argv); which will return the number of filenames found. You can then use that, or just check if *argv is NULL in a loop like while (*argv) list = sparse(argv); where you get the declaration list for each file in turn.
* Split out the blob allocator from lib.c into allocate.c.Linus Torvalds2005-04-071-0/+1
| | | | | | | | | It's disgusting how intimate lib.c is with all the types, and this is slowly trying to split things up a bit. Now the intimate part is in allocate.c, but maybe we can get to the point where each allocation user just declares its own allocation strategy, and just uses the generic routines in allocate.c
* Update test-linearize.c to the new world order.Linus Torvalds2005-04-071-51/+1
|
* Make "translation_unit()" do symbol evaluation too.Linus Torvalds2005-04-071-4/+3
| | | | | Not only do all users want it, the list of used symbols is not stable until after the tree has been evaluated.
* Get rid of the old "iterate()" interfaces.Linus Torvalds2005-04-071-10/+14
| | | | | Use FOR_EACH_PTR() instead, or the much fancier iterators for basic blocks.
* test-linearize.c:welinder@troll.com2005-04-071-5/+5
| | | | | | | | | | | | | | Simplify using declare_builtin_functions. lib.h: declare declare_builtin_functions. lib.c: New declare_builtin_functions extracted from check.c Fix __builtin_ffs prototype. Define __SIZE_TYPE__ only conditionally to allow it to be overwritten from command line by cgcc. Add __builtin_va_alist and __builtin_va_arg_incr stubs. check.c: Move builtin declarations to lib.c
* Make "next_path" be per-stream for better "include_next".Linus Torvalds2005-04-071-2/+2
| | | | Maybe this makes us gcc-compatible. Maybe it doesn't.
* Fix test-linearize with symbols that have no code to show.Linus Torvalds2005-04-071-1/+2
|
* Generalize linearize_symbol()Jeff Garzik2005-04-071-1/+4
| | | | Allow it to be used by multiple callers.
* Initialize C type system after parsing the command line arguments.Linus Torvalds2005-04-071-1/+3
| | | | This makes "-m64" actually work.
* Add a "test-linearize" program to test the output ofLinus Torvalds2005-04-071-0/+83
the linearization phase.