summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-02 15:47:03 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-03-02 15:47:03 +0000
commit441fbbf3b00f34a7e6b8163f2ca5c514fb5659da (patch)
tree47d1622a6e37c30c37dec6f33de1d6b4b8f831a0
parentd5c557a568420526faa2ffdde3fa7e597f51849c (diff)
downloadppe42-gcc-441fbbf3b00f34a7e6b8163f2ca5c514fb5659da.tar.gz
ppe42-gcc-441fbbf3b00f34a7e6b8163f2ca5c514fb5659da.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111639 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-alias.c2
2 files changed, 7 insertions, 0 deletions
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 <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
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;
OpenPOWER on IntegriCloud