tcc-asm: Parse .size directive correctly

When the .size directive was closed with a ';' tcc eat everything after
it up to lineend.
This commit is contained in:
Michael Matz 2016-07-11 21:16:43 +02:00
parent 6a5ec8cb3c
commit e3f2a68311

View File

@ -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();
}
}