tree-ssa-alias.c (find_used_portions): Consider taking the address as making the...
authorRichard Guenther <rguenther@suse.de>
Thu, 2 Mar 2006 15:47:03 +0000 (15:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Mar 2006 15:47:03 +0000 (15:47 +0000)
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

gcc/ChangeLog
gcc/tree-ssa-alias.c

index f6bad00d139eee27e7f53def75101350f9a79398..5caf2337f45030aa3248c7d9c62f1a6a8df24856 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2006-03-02  Nick Clifton  <nickc@redhat.com>
 
        * config.gcc (default_use_cxa_atexit): Extend the description of
index e8579bf8b5a18c881cf7b90eafb6659342005226..eacfed7089189f3ad1c4343499c782e7f10718d9 100644 (file)
@@ -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;