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-sra.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:33:36 -0400
- Subject: [lto] PATCH: CALL_EXPR changes to gcc/tree-sra.c
Already committed as "obvious".
-Sandra
2006-07-12 Sandra Loosemore <sandra@codesourcery.com>
* gcc/tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR interface
for iterating over arguments.
Index: gcc/tree-sra.c
===================================================================
*** gcc/tree-sra.c (revision 115346)
--- gcc/tree-sra.c (working copy)
*************** static void
*** 781,787 ****
sra_walk_call_expr (tree expr, block_stmt_iterator *bsi,
const struct sra_walk_fns *fns)
{
! sra_walk_tree_list (TREE_OPERAND (expr, 1), bsi, false, fns);
}
/* Walk the inputs and outputs of an ASM_EXPR looking for scalarizable
--- 781,790 ----
sra_walk_call_expr (tree expr, block_stmt_iterator *bsi,
const struct sra_walk_fns *fns)
{
! int i;
! int nargs = call_expr_nargs (expr);
! for (i = 0; i < nargs; i++)
! sra_walk_expr (&CALL_EXPR_ARG (expr, i), bsi, false, fns);
}
/* Walk the inputs and outputs of an ASM_EXPR looking for scalarizable