summaryrefslogtreecommitdiff
path: root/gcc/struct-equiv.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-19 14:02:56 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-19 14:02:56 +0000
commitebb84e0da8df60f46264d7b802eef394afe99d52 (patch)
tree373a24bcf98ecd7f75e583920b65eb7d268b342b /gcc/struct-equiv.c
parentaf573b70d9da6d3379c5f5a174b853da3050528f (diff)
downloadgcc-ebb84e0da8df60f46264d7b802eef394afe99d52.tar.gz
* struct-equiv.c (struct_equiv_improve_checkpoint): Fix sets_cc0_p
check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108791 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/struct-equiv.c')
-rw-r--r--gcc/struct-equiv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/struct-equiv.c b/gcc/struct-equiv.c
index 69639d254e4..e38ae733113 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)