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-ssa-alias.c


Already committed as "obvious".

-Sandra
2006-07-12  Sandra Loosemore  <sandra@codesourcery.com>

	* gcc/tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR
	accessors.
Index: gcc/tree-ssa-alias.c
===================================================================
*** gcc/tree-ssa-alias.c	(revision 115346)
--- gcc/tree-ssa-alias.c	(working copy)
*************** find_used_portions (tree *tp, int *walk_
*** 3135,3145 ****
        break;
      case CALL_EXPR:
        {
! 	tree *arg;
! 	for (arg = &TREE_OPERAND (*tp, 1); *arg; arg = &TREE_CHAIN (*arg))
  	  {
! 	    if (TREE_CODE (TREE_VALUE (*arg)) != ADDR_EXPR)
!               find_used_portions (&TREE_VALUE (*arg), walk_subtrees, NULL);
  	  }
  	*walk_subtrees = 0;
  	return NULL_TREE;
--- 3135,3147 ----
        break;
      case CALL_EXPR:
        {
! 	int i;
! 	int nargs = call_expr_nargs (*tp);
! 	for (i = 0; i < nargs; i++)
  	  {
! 	    tree *arg = &CALL_EXPR_ARG (*tp, i);
! 	    if (TREE_CODE (*arg) != ADDR_EXPR)
!               find_used_portions (arg, walk_subtrees, NULL);
  	  }
  	*walk_subtrees = 0;
  	return NULL_TREE;

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