From: Christoph Mallon Date: Thu, 26 Apr 2012 11:21:55 +0000 (+0200) Subject: Improve error recovery in parse_asm_statement() and do not return an error statement. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=23ebb996cbe0f5d2c74184d1cfb783cb2a529a13;p=cparser Improve error recovery in parse_asm_statement() and do not return an error statement. --- diff --git a/parser.c b/parser.c index d96e598..35762b9 100644 --- a/parser.c +++ b/parser.c @@ -9048,6 +9048,7 @@ end_of_asm: expect(')', end_error); expect(';', end_error); +end_error: if (asm_statement->outputs == NULL) { /* GCC: An 'asm' instruction without any output operands will be treated * identically to a volatile 'asm' instruction. */ @@ -9055,8 +9056,6 @@ end_of_asm: } return statement; -end_error: - return create_error_statement(); } static statement_t *parse_label_inner_statement(statement_t const *const label, char const *const label_kind)