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

This commit is contained in:
bellard
2005-09-03 22:23:59 +00:00
parent e9c64e3f47
commit 7b8e283980

View File

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