aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@st.com>2005-12-19 14:02:56 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2005-12-19 14:02:56 +0000
commit4264bbf9bdd193254face8802cf459da0a2d75fb (patch)
tree373a24bcf98ecd7f75e583920b65eb7d268b342b /gcc
parentf8ef405c5767872a37a607dadf8fff9182bfa056 (diff)
downloadgcc-4264bbf9bdd193254face8802cf459da0a2d75fb.zip
gcc-4264bbf9bdd193254face8802cf459da0a2d75fb.tar.gz
gcc-4264bbf9bdd193254face8802cf459da0a2d75fb.tar.bz2
struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p check.
* struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p check. From-SVN: r108791
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/struct-equiv.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b6cf3df..1ceca21 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-19 J"orn Rennecke <joern.rennecke@st.com>
+
+ * struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
+ check.
+
2005-12-19 Ben Elliston <bje@au.ibm.com>
* doc/install.texi (Configuration): Typo in Fortran subheading.
diff --git a/gcc/struct-equiv.c b/gcc/struct-equiv.c
index 69639d2..e38ae73 100644
--- a/gcc/struct-equiv.c
+++ b/gcc/struct-equiv.c
@@ -249,7 +249,8 @@ struct_equiv_improve_checkpoint (struct struct_equiv_checkpoint *p,
struct equiv_info *info)
{
#ifdef HAVE_cc0
- if (reg_mentioned_p (cc0_rtx, p->x_start) && !sets_cc0_p (p->x_start))
+ if (reg_mentioned_p (cc0_rtx, info->cur.x_start)
+ && !sets_cc0_p (info->cur.x_start))
return;
#endif
if (info->cur.input_count >= IMPOSSIBLE_MOVE_FACTOR)