This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] PATCH: CALL_EXPR changes to gcc/tree-ssa-structalias.c
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Jul 2006 15:50:35 -0400
- Subject: [lto] PATCH: CALL_EXPR changes to gcc/tree-ssa-structalias.c
Already committed as "obvious".
-Sandra
2006-07-12 Sandra Loosemore <sandra@codesourcery.com>
* gcc/tree-ssa-structalias.c (find_func_aliases): Use new
CALL_EXPR accessors and iterators.
Index: gcc/tree-ssa-structalias.c
===================================================================
*** gcc/tree-ssa-structalias.c (revision 115346)
--- gcc/tree-ssa-structalias.c (working copy)
*************** find_func_aliases (tree origt)
*** 3301,3307 ****
tree lhsop;
tree rhsop;
unsigned int varid;
! tree arglist;
varinfo_t fi;
int i = 1;
tree decl;
--- 3301,3308 ----
tree lhsop;
tree rhsop;
unsigned int varid;
! tree arg;
! call_expr_arg_iterator iter;
varinfo_t fi;
int i = 1;
tree decl;
*************** find_func_aliases (tree origt)
*** 3326,3343 ****
}
else
{
! decl = TREE_OPERAND (rhsop, 0);
varid = get_id_for_tree (decl);
}
/* Assign all the passed arguments to the appropriate incoming
parameters of the function. */
fi = get_varinfo (varid);
! arglist = TREE_OPERAND (rhsop, 1);
!
! for (;arglist; arglist = TREE_CHAIN (arglist))
{
- tree arg = TREE_VALUE (arglist);
struct constraint_expr lhs ;
struct constraint_expr *rhsp;
--- 3327,3342 ----
}
else
{
! decl = CALL_EXPR_FN (rhsop);
varid = get_id_for_tree (decl);
}
/* Assign all the passed arguments to the appropriate incoming
parameters of the function. */
fi = get_varinfo (varid);
!
! FOR_EACH_CALL_EXPR_ARG (arg, iter, rhsop)
{
struct constraint_expr lhs ;
struct constraint_expr *rhsp;