aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-alias.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-03-02 15:47:03 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-03-02 15:47:03 +0000
commit62c577fd5b75400ee9ee04912a63dda0120703e2 (patch)
tree47d1622a6e37c30c37dec6f33de1d6b4b8f831a0 /gcc/tree-ssa-alias.c
parent92cd5e4fe4f67c15ed26b1e0a904185710a49a94 (diff)
downloadgcc-62c577fd5b75400ee9ee04912a63dda0120703e2.zip
gcc-62c577fd5b75400ee9ee04912a63dda0120703e2.tar.gz
gcc-62c577fd5b75400ee9ee04912a63dda0120703e2.tar.bz2
tree-ssa-alias.c (find_used_portions): Consider taking the address as making the variable not write-only.
2006-03-02 Richard Guenther <rguenther@suse.de> * tree-ssa-alias.c (find_used_portions): Consider taking the address as making the variable not write-only. From-SVN: r111639
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r--gcc/tree-ssa-alias.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
index e8579bf..eacfed7 100644
--- a/gcc/tree-ssa-alias.c
+++ b/gcc/tree-ssa-alias.c
@@ -3071,6 +3071,8 @@ find_used_portions (tree *tp, int *walk_subtrees, void *lhs_p)
up->minused = 0;
up->maxused = TREE_INT_CST_LOW (DECL_SIZE (var));
up->implicit_uses = true;
+ if (!lhs_p)
+ up->write_only = false;
up_insert (uid, up);
*walk_subtrees = 0;