From: Richard Biener Date: Mon, 10 Apr 2017 15:34:19 +0000 (+0000) Subject: tree-ssa-structalias.c (find_func_aliases): Properly handle asm inputs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78a9876f98df16eaf58aec37b207fa8cbd2c946a;p=gcc.git tree-ssa-structalias.c (find_func_aliases): Properly handle asm inputs. 2017-04-10 Richard Biener * tree-ssa-structalias.c (find_func_aliases): Properly handle asm inputs. From-SVN: r246809 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00b994b5245..b6d385b3579 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-04-10 Richard Biener + + * tree-ssa-structalias.c (find_func_aliases): Properly handle + asm inputs. + 2017-04-10 Vladimir Makarov PR rtl-optimization/70478 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index aab6821e792..77736f51153 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4944,14 +4944,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 memory. */ + any global or escaped memory. */ if (op) { auto_vec lhsc; struct constraint_expr rhsc, *lhsp; unsigned j; get_constraint_for (op, &lhsc); - rhsc.var = nonlocal_id; + rhsc.var = escaped_id; rhsc.offset = 0; rhsc.type = SCALAR; FOR_EACH_VEC_ELT (lhsc, j, lhsp)