From e3f2a683113bb28bc1e9820dfe18d3bd8e0156d2 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 11 Jul 2016 21:16:43 +0200 Subject: [PATCH] tcc-asm: Parse .size directive correctly When the .size directive was closed with a ';' tcc eat everything after it up to lineend. --- tccasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccasm.c b/tccasm.c index eed3cdb..ea65171 100644 --- a/tccasm.c +++ b/tccasm.c @@ -729,7 +729,7 @@ static void asm_parse_directive(TCCState *s1) next(); skip(','); - while (tok != '\n' && tok != CH_EOF) { + while (tok != TOK_LINEFEED && tok != ';' && tok != CH_EOF) { next(); } }