This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]