On Wed, Feb 14, 2007 at 03:01:54PM -0500, Daniel Drake wrote: > sparse doesn't like it: > > test.c:7:8: error: Trying to use reserved word '__attribute__' > as identifier Can you please try this: Chris Handle structure attribute. struct __attribute__((__aligned__(16))) foo { int a; }; Signed-Off-By: Christopher Li <sparse@xxxxxxxxxxx> Index: sparse/parse.c =================================================================== --- sparse.orig/parse.c 2007-02-14 12:37:17.000000000 -0800 +++ sparse/parse.c 2007-02-14 12:40:48.000000000 -0800 @@ -34,6 +34,7 @@ struct symbol_list *function_computed_ta struct statement_list *function_computed_goto_list; static struct token *statement(struct token *token, struct statement **tree); +static struct token *handle_attributes(struct token *token, struct ctype *ctype); // Add a symbol to the list of function-local symbols static void fn_local_symbol(struct symbol *sym) @@ -156,6 +157,7 @@ static struct token *struct_union_enum_s struct position *repos; ctype->modifiers = 0; + token = handle_attributes(token, ctype); if (token_type(token) == TOKEN_IDENT) { sym = lookup_symbol(token->ident, NS_STRUCT); if (!sym || - To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html