summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-21 19:58:35 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-21 19:58:35 +0000
commit6bc21dca1e7ae2207a04646ca5df98e1356cf066 (patch)
treeb9dc59c9fb87b1b87df0dcdce1c1c21748b9f2a7 /gcc
parent96ab3ac73cc62a514f0d62da2cc2b6f4fbc250cc (diff)
downloadgcc-6bc21dca1e7ae2207a04646ca5df98e1356cf066.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35857 138bc75d-0d04-0410-961f-82ee72b054a4
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 a800469bff0..2003fb8770a 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 1293a6c4c64..f9b00f11cf1 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 2f397b96e51..00000000000
--- 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 6976ebae6ed..c09f036eb5f 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;
}