summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-01 20:50:03 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-01 20:50:03 +0000
commita6d6d374ab51c4c123148b14d35dff6dfc770296 (patch)
treeadfd7bbb9c5ae27997b84e55b147cbff86b52a22 /gcc/expr.c
parenta315014843a60f7f0ed6516cf541dff6e73c25fc (diff)
downloadppe42-gcc-a6d6d374ab51c4c123148b14d35dff6dfc770296.tar.gz
ppe42-gcc-a6d6d374ab51c4c123148b14d35dff6dfc770296.zip
* expr.c (expand_expr, case ARRAY_REF): Correct check for
side-effects in the value of an array element. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43680 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index c5276f2556e..afa55a68708 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6902,7 +6902,7 @@ expand_expr (exp, target, tmode, modifier)
elem = TREE_CHAIN (elem))
;
- if (elem && !TREE_SIDE_EFFECTS (elem))
+ if (elem && !TREE_SIDE_EFFECTS (TREE_VALUE (elem)))
return expand_expr (fold (TREE_VALUE (elem)), target,
tmode, ro_modifier);
}
OpenPOWER on IntegriCloud