diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | check.c | 1 | ||||
| -rw-r--r-- | parse.c | 2 |
3 files changed, 4 insertions, 1 deletions
@@ -22,7 +22,7 @@ all: $(PROGRAMS) # "The better to keep you on your toes, my dear". # install: check - install -C check $(PREFIX)/bin/sparse + if test $< -nt $(PREFIX)/bin/sparse ; then install -sv $< $(PREFIX)/bin/sparse ; fi test-lexing: test-lexing.o $(LIB_FILE) gcc $(LDFLAGS) -o $@ $< $(LIBS) @@ -44,6 +44,7 @@ int main(int argc, char **argv) add_pre_buffer("extern void *__builtin_return_address(int);\n"); add_pre_buffer("extern void *__builtin_memset(void *, int, unsigned long);\n"); add_pre_buffer("extern void __builtin_trap(void);\n"); + add_pre_buffer("extern int __builtin_ffs(unsigned long);\n"); /* XXX(cw) check this */ args = argv; for (;;) { @@ -304,6 +304,8 @@ static const char * handle_attribute(struct ctype *ctype, struct ident *attribut return NULL; if (match_string_ident(attribute, "always_inline")) return NULL; + if (match_string_ident(attribute, "syscall_linkage")) + return NULL; return "unknown attribute"; } |
