From: Richard Guenther Date: Thu, 2 Mar 2006 15:47:03 +0000 (+0000) Subject: tree-ssa-alias.c (find_used_portions): Consider taking the address as making the... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62c577fd5b75400ee9ee04912a63dda0120703e2;p=gcc.git tree-ssa-alias.c (find_used_portions): Consider taking the address as making the variable not write-only. 2006-03-02 Richard Guenther * tree-ssa-alias.c (find_used_portions): Consider taking the address as making the variable not write-only. From-SVN: r111639 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6bad00d139..5caf2337f45 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-03-02 Richard Guenther + + * tree-ssa-alias.c (find_used_portions): Consider taking + the address as making the variable not write-only. + 2006-03-02 Nick Clifton * config.gcc (default_use_cxa_atexit): Extend the description of diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index e8579bf8b5a..eacfed70891 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;