summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/tree-ssa-operands.c')
-rw-r--r--contrib/gcc/tree-ssa-operands.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/gcc/tree-ssa-operands.c b/contrib/gcc/tree-ssa-operands.c
index 804f821..3c24d2a 100644
--- a/contrib/gcc/tree-ssa-operands.c
+++ b/contrib/gcc/tree-ssa-operands.c
@@ -2162,9 +2162,14 @@ build_ssa_operands (tree stmt)
{
stmt_ann_t ann = get_stmt_ann (stmt);
- /* Initially assume that the statement has no volatile operands. */
+ /* Initially assume that the statement has no volatile operands and
+ does not take the address of any symbols. */
if (ann)
- ann->has_volatile_ops = false;
+ {
+ ann->has_volatile_ops = false;
+ if (ann->addresses_taken)
+ ann->addresses_taken = NULL;
+ }
start_ssa_stmt_operands ();
OpenPOWER on IntegriCloud