Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752418Ab0GJIjc (ORCPT ); Sat, 10 Jul 2010 04:39:32 -0400 Received: from mail.pripojeni.net ([217.66.174.14]:48443 "EHLO mail.pripojeni.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751309Ab0GJIja (ORCPT ); Sat, 10 Jul 2010 04:39:30 -0400 From: Jiri Slaby To: christ.li@gmail.com Cc: jirislaby@gmail.com, Larry Finger , linux-kernel@vger.kernel.org, linux-sparse@vger.kernel.org, Jiri Slaby Subject: [PATCH 1/2] parser: fix and simplify support of asm goto Date: Sat, 10 Jul 2010 10:39:21 +0200 Message-Id: <1278751162-10053-1-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.7.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1259 Lines: 42 Christopher Li wrote: > Yes, you caught me slacking off. It is time to cut a new release > and flush all the bits into the official tree. But include the patch below first, please. And maybe the second one... --- 1) We now handle only "asm (volatile|goto)?", whereas "asm volatile? goto?" is correct. 2) We need to match only goto_ident, so do it explicitly against token->ident without match_idents. Signed-off-by: Jiri Slaby --- parse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/parse.c b/parse.c index caf10b9..dd7b1a4 100644 --- a/parse.c +++ b/parse.c @@ -1915,7 +1915,8 @@ static struct token *parse_asm_statement(struct token *token, struct statement * stmt->type = STMT_ASM; if (match_idents(token, &__volatile___ident, &__volatile_ident, &volatile_ident, NULL)) { token = token->next; - } else if (match_idents(token, &goto_ident, NULL)) { + } + if (token->ident == &goto_ident) { is_goto = 1; token = token->next; } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/