reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp.
* reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp. "=u" is used together with "st" resp. "st(1)" clobber. From-SVN: r41446
This commit is contained in:
parent
c0230f3744
commit
d40cd80a97
2 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-04-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp.
|
||||
"=u" is used together with "st" resp. "st(1)" clobber.
|
||||
|
||||
2001-04-20 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcse.c (gcse_main): Fix comment typo.
|
||||
|
|
|
@ -662,7 +662,20 @@ check_asm_stack_operands (insn)
|
|||
malformed_asm = 1;
|
||||
}
|
||||
else
|
||||
reg_used_as_output[REGNO (recog_data.operand[i])] = 1;
|
||||
{
|
||||
int j;
|
||||
|
||||
for (j = 0; j < n_clobbers; j++)
|
||||
if (REGNO (recog_data.operand[i]) == REGNO (clobber_reg[j]))
|
||||
{
|
||||
error_for_asm (insn, "Output constraint %d cannot be specified together with \"%s\" clobber",
|
||||
i, reg_names [REGNO (clobber_reg[j])]);
|
||||
malformed_asm = 1;
|
||||
break;
|
||||
}
|
||||
if (j == n_clobbers)
|
||||
reg_used_as_output[REGNO (recog_data.operand[i])] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue