support for empty input register section in asm (Filip Navara)

tcc-xref
bellard 2005-09-03 22:23:59 +00:00
parent e9c64e3f47
commit 7b8e283980
1 changed files with 15 additions and 13 deletions

View File

@ -916,6 +916,7 @@ static void asm_instr(void)
nb_outputs = nb_operands;
if (tok == ':') {
next();
if (tok != ')') {
/* input args */
parse_asm_operands(operands, &nb_operands, 0);
if (tok == ':') {
@ -936,6 +937,7 @@ static void asm_instr(void)
}
}
}
}
skip(')');
/* NOTE: we do not eat the ';' so that we can restore the current
token after the assembler parsing */