From 8ba7b39619276758927df440237b74cb23654eb4 Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Mon, 19 Jun 2000 22:31:47 +0000 Subject: [PATCH] * Take REG_INC notes into account. From-SVN: r34603 --- gcc/ChangeLog | 4 ++++ gcc/flow.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0e8ae61d50e..85690c532048 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Jun 19 23:26:40 2000 J"orn Rennecke + + * Take REG_INC notes into account. + 2000-06-19 Zack Weinberg * c-parse.in (undeclared_variable_notice): Moved to c-typeck.c. diff --git a/gcc/flow.c b/gcc/flow.c index 99cfbfcff122..dab034ecc491 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -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)) { -- 2.43.5