From 1ceef2e2de554a64aef58622a6fc359c9a3f4c89 Mon Sep 17 00:00:00 2001 From: Christopher Li Date: Fri, 23 Feb 2007 14:30:27 -0800 Subject: [PATCH] Fix a bug that match_idents forget to end with NULL Pavel Roskin manage to hit this bug with struct st { char c; } __attribute__ ((aligned(2))); struct st s1; struct st s2; Signed-Off-By: Christopher Li --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index dcb0cb2d..30826d98 100644 --- a/parse.c +++ b/parse.c @@ -861,7 +861,7 @@ static struct token *handle_attributes(struct token *token, struct ctype *ctype) apply_ctype(token->pos, &thistype, ctype); continue; } - if (match_idents(token, &asm_ident, &__asm_ident, &__asm___ident)) { + if (match_idents(token, &asm_ident, &__asm_ident, &__asm___ident, NULL)) { struct expression *expr; token = expect(token->next, '(', "after asm"); token = parse_expression(token->next, &expr); -- 2.11.4.GIT