| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
Noted by Mitesh Shah
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Not only do all users want it, the list of used symbols
is not stable until after the tree has been evaluated.
|
|
|
|
|
| |
Use FOR_EACH_PTR() instead, or the much fancier iterators
for basic blocks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Maybe this makes us gcc-compatible. Maybe it doesn't.
|
| |
|
|
|
|
| |
Allow it to be used by multiple callers.
|
|
|
|
| |
This makes "-m64" actually work.
|
|
the linearization phase.
|