* Take REG_INC notes into account.

From-SVN: r34603
This commit is contained in:
J"orn Rennecke 2000-06-19 22:31:47 +00:00 committed by Joern Rennecke
parent 7e585d16ce
commit 8ba7b39619
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Jun 19 23:26:40 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
* Take REG_INC notes into account.
2000-06-19 Zack Weinberg <zack@wolery.cumb.org>
* c-parse.in (undeclared_variable_notice): Moved to c-typeck.c.

View File

@ -4152,8 +4152,18 @@ mark_set_regs (pbi, x, insn)
rtx x, insn;
{
rtx cond = NULL_RTX;
rtx link;
enum rtx_code code;
if (insn)
for (link = REG_NOTES (insn); link; link = XEXP (link, 1))
{
if (REG_NOTE_KIND (link) == REG_INC)
mark_set_1 (pbi, SET, XEXP (link, 0),
(GET_CODE (x) == COND_EXEC
? COND_EXEC_TEST (x) : NULL_RTX),
insn, pbi->flags);
}
retry:
switch (code = GET_CODE (x))
{