summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-04 15:29:15 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-04 15:29:15 +0000
commit305647aa5d87acf090f2e75b5b6793e1751adecf (patch)
tree420dfd35f0a0d8ca5819364904ed46588d548c80 /gcc/tree-ssa-operands.c
parentc5a2e9d4693af2afa0eb5e8822b49822172809fa (diff)
downloadgcc-305647aa5d87acf090f2e75b5b6793e1751adecf.tar.gz
2007-09-04 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.c (add_virtual_operand): Only mark stores as has_volatile_ops if alias information is not available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128089 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 4996e09e854..b01dd995235 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1494,7 +1494,8 @@ add_virtual_operand (tree var, stmt_ann_t s_ann, int flags,
if (aliases == NULL)
{
- if (!gimple_aliases_computed_p (cfun))
+ if (!gimple_aliases_computed_p (cfun)
+ && (flags & opf_def))
s_ann->has_volatile_ops = true;
/* The variable is not aliased or it is an alias tag. */