From: Richard Biener Date: Fri, 6 May 2016 12:53:26 +0000 (+0000) Subject: re PR tree-optimization/70948 (r235622 caused gcc.c-torture/execute/va-arg-pack-1... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab4ccf2094a0fa373049a32aad9e3ce3ca80e395;p=gcc.git re PR tree-optimization/70948 (r235622 caused gcc.c-torture/execute/va-arg-pack-1.c execution failure AArch64) 2016-05-06 Richard Biener PR tree-optimization/70948 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Properly clobber all fields of va_list for __builtin_va_start. From-SVN: r235963 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f3679a52b3..4f7ad75da01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-05-06 Richard Biener + + PR tree-optimization/70948 + * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): + Properly clobber all fields of va_list for __builtin_va_start. + 2016-05-06 Yuri Rumyantsev PR debug/70935 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index d66bdfa94ce..3956efd4766 100644 --- a/gcc/tree-ssa-structalias.c +++ b/gcc/tree-ssa-structalias.c @@ -4492,7 +4492,7 @@ find_func_aliases_for_builtin_call (struct function *fn, gcall *t) tree valist = gimple_call_arg (t, 0); struct constraint_expr rhs, *lhsp; unsigned i; - get_constraint_for (valist, &lhsc); + get_constraint_for_ptr_offset (valist, NULL_TREE, &lhsc); do_deref (&lhsc); /* The va_list gets access to pointers in variadic arguments. Which we know in the case of IPA analysis