aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>2000-06-19 22:31:47 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2000-06-19 23:31:47 +0100
commit8ba7b39619276758927df440237b74cb23654eb4 (patch)
treeeb39be702f308d1a5cb62d7f82cbb2c6bc4f78f9
parent7e585d16ce4df23bfd21cf82e58dd323f9939232 (diff)
downloadgcc-8ba7b39619276758927df440237b74cb23654eb4.zip
gcc-8ba7b39619276758927df440237b74cb23654eb4.tar.gz
gcc-8ba7b39619276758927df440237b74cb23654eb4.tar.bz2
* Take REG_INC notes into account.
From-SVN: r34603
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/flow.c10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e0e8ae6..85690c5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/flow.c b/gcc/flow.c
index 99cfbfc..dab034e 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))
{