aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-ssa-structalias.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.cc b/gcc/tree-ssa-structalias.cc
index f93c5df..9cec2c6 100644
--- a/gcc/tree-ssa-structalias.cc
+++ b/gcc/tree-ssa-structalias.cc
@@ -5269,7 +5269,11 @@ find_func_aliases (struct function *fn, gimple *origt)
/* A memory constraint makes the address of the operand escape. */
if (!allows_reg && allows_mem)
- make_escape_constraint (build_fold_addr_expr (op));
+ {
+ auto_vec<ce_s> tmpc;
+ get_constraint_for_address_of (op, &tmpc);
+ make_constraints_to (escaped_id, tmpc);
+ }
/* The asm may read global memory, so outputs may point to
any global memory. */
@@ -5298,7 +5302,11 @@ find_func_aliases (struct function *fn, gimple *origt)
/* A memory constraint makes the address of the operand escape. */
if (!allows_reg && allows_mem)
- make_escape_constraint (build_fold_addr_expr (op));
+ {
+ auto_vec<ce_s> tmpc;
+ get_constraint_for_address_of (op, &tmpc);
+ make_constraints_to (escaped_id, tmpc);
+ }
/* Strictly we'd only need the constraint to ESCAPED if
the asm clobbers memory, otherwise using something
along the lines of per-call clobbers/uses would be enough. */