[Bug tree-optimization/70948] [7 Regression] r235622 caused gcc.c-torture/execute/va-arg-pack-1.c execution failure AArch64
jiwang at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 6 10:27:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70948
--- Comment #4 from Jiong Wang <jiwang at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> The following should fix it, I am going to test it on x86_64:
>
> Index: gcc/tree-ssa-structalias.c
> ===================================================================
> --- gcc/tree-ssa-structalias.c (revision 235945)
> +++ gcc/tree-ssa-structalias.c (working copy)
> @@ -4492,7 +4492,7 @@ find_func_aliases_for_builtin_call (stru
> 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
Thanks. This patch fixed all regressions on my native test.
More information about the Gcc-bugs
mailing list