support for empty input register section in asm (Filip Navara)
This commit is contained in:
2
tccasm.c
2
tccasm.c
@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user