summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authordalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 03:11:52 +0000
committerdalej <dalej@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-20 03:11:52 +0000
commitce6975765c7bcbf242ce3a0fc64bd54421bfa58a (patch)
treef87ab70138f2bec348cbbee76d0eb7da0d9a05ef /gcc
parentb11ef6eec95f2f68d6aa9ab7455d2ac7298e32c4 (diff)
downloadppe42-gcc-ce6975765c7bcbf242ce3a0fc64bd54421bfa58a.tar.gz
ppe42-gcc-ce6975765c7bcbf242ce3a0fc64bd54421bfa58a.zip
2004-12-19 Dale Johannesen <dalej@apple.com>
* tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Don't reference operand 1 of ADDR_EXPRs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92405 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-loop-ivopts.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b77cbbf8fc9..243363bf497 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-19 Dale Johannesen <dalej@apple.com>
+
+ * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Don't
+ reference operand 1 of ADDR_EXPRs.
+
2004-12-19 Mark Mitchell <mark@codesourcery.com>
* defaults.h (ASM_OUTPUT_INTERNAL_LABEL): New macro.
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 9c5aad3920f..6935cf5d922 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -834,7 +834,7 @@ contains_abnormal_ssa_name_p (tree expr)
return false;
if (code == ADDR_EXPR)
- return !for_each_index (&TREE_OPERAND (expr, 1),
+ return !for_each_index (&TREE_OPERAND (expr, 0),
idx_contains_abnormal_ssa_name_p,
NULL);
OpenPOWER on IntegriCloud