summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-structalias.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2017-05-02 11:27:15 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2017-05-02 11:27:15 +0000
commitaee63acc76771bb7bec72073ca8a5a2efff2d6fd (patch)
tree48333d3a390362fcf3979f55d304a21029e3845c /gcc/tree-ssa-structalias.c
parente7d70c6c3bccb2a1abed2683d436423cc5484704 (diff)
re PR tree-optimization/80591 (AArch64 kernel miscompilation starting with r246809)
2017-05-02 Richard Biener <rguenther@suse.de> PR tree-optimization/80591 Revert 2017-04-10 Richard Biener <rguenther@suse.de> * tree-ssa-structalias.c (find_func_aliases): Properly handle asm inputs. * gcc.dg/torture/pr80591.c: New testcase. From-SVN: r247488
Diffstat (limited to 'gcc/tree-ssa-structalias.c')
-rw-r--r--gcc/tree-ssa-structalias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 7b1bf10e1cf..2394edf3826 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -4978,14 +4978,14 @@ find_func_aliases (struct function *fn, gimple *origt)
make_escape_constraint (build_fold_addr_expr (op));
/* The asm may read global memory, so outputs may point to
- any global or escaped memory. */
+ any global memory. */
if (op)
{
auto_vec<ce_s, 2> lhsc;
struct constraint_expr rhsc, *lhsp;
unsigned j;
get_constraint_for (op, &lhsc);
- rhsc.var = escaped_id;
+ rhsc.var = nonlocal_id;
rhsc.offset = 0;
rhsc.type = SCALAR;
FOR_EACH_VEC_ELT (lhsc, j, lhsp)