This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/70948] [7 Regression] r235622 caused gcc.c-torture/execute/va-arg-pack-1.c execution failure AArch64
- From: "jiwang at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 May 2016 10:27:12 +0000
- Subject: [Bug tree-optimization/70948] [7 Regression] r235622 caused gcc.c-torture/execute/va-arg-pack-1.c execution failure AArch64
- Auto-submitted: auto-generated
- References: <bug-70948-4 at http dot gcc dot gnu dot org/bugzilla/>
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.