forked from Mirrors/tinycc
support for empty input register section in asm (Filip Navara)
parent
e9c64e3f47
commit
7b8e283980
2
tccasm.c
2
tccasm.c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue