aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2000-08-21 21:58:35 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2000-08-21 21:58:35 +0200
commit6315f06806fddb632247ac30d5dba61a8ee08feb (patch)
treeb9dc59c9fb87b1b87df0dcdce1c1c21748b9f2a7 /gcc
parent5804a754e51fe8a475bb701a57997ee0cdb51fc0 (diff)
downloadgcc-6315f06806fddb632247ac30d5dba61a8ee08feb.zip
gcc-6315f06806fddb632247ac30d5dba61a8ee08feb.tar.gz
gcc-6315f06806fddb632247ac30d5dba61a8ee08feb.tar.bz2
unroll.c (loop_find_equiv_value): If ret is modified between insn and loop_start, ret might not be equivalent to reg.
* unroll.c (loop_find_equiv_value): If ret is modified between insn and loop_start, ret might not be equivalent to reg. * gcc.c-torture/execute/20000819-1.x: Remove. From-SVN: r35857
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000819-1.x2
-rw-r--r--gcc/unroll.c5
4 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a800469..2003fb8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-21 Jakub Jelinek <jakub@redhat.com>
+
+ * unroll.c (loop_find_equiv_value): If ret is modified between
+ insn and loop_start, ret might not be equivalent to reg.
+
2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.c (init_dollar_format_checking,
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1293a6c..f9b00f1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2000-08-21 Jakub Jelinek <jakub@redhat.com>
+
+ * gcc.c-torture/execute/20000819-1.x: Remove.
+
2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.dg/c90-printf-3.c, gcc.dg/c90-scanf-2.c,
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000819-1.x b/gcc/testsuite/gcc.c-torture/execute/20000819-1.x
deleted file mode 100644
index 2f397b9..0000000
--- a/gcc/testsuite/gcc.c-torture/execute/20000819-1.x
+++ /dev/null
@@ -1,2 +0,0 @@
-set torture_execute_xfail "*-*-*"
-return 0
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 6976eba..c09f036 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -3540,6 +3540,11 @@ loop_find_equiv_value (loop, reg)
ret = XEXP (note, 0);
else
ret = SET_SRC (set);
+
+ /* We cannot do this if it changes between the
+ assignment and loop start though. */
+ if (modified_between_p (ret, insn, loop_start))
+ ret = reg;
}
break;
}