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: fix another overlooked CALL_EXPR access


I found another spot that I overlooked in converting CALL_EXPR accesses to use the new macros. Already committed as "obvious".

-Sandra



2006-08-09  Sandra Loosemore  <sandra@codesourcery.com>

	* gcc/builtins.c (fold_builtin_cbrt): Use CALL_EXPR_ARG0.
Index: gcc/builtins.c
===================================================================
*** gcc/builtins.c	(revision 116037)
--- gcc/builtins.c	(working copy)
*************** fold_builtin_cbrt (tree arg, tree type)
*** 6919,6925 ****
  	  const REAL_VALUE_TYPE third_trunc =
  	    real_value_truncate (TYPE_MODE (type), dconstthird);
  	  arg = fold_build2 (MULT_EXPR, type,
! 			     TREE_VALUE (TREE_OPERAND (arg, 1)),
  			     build_real (type, third_trunc));
  	  return build_call_expr (expfn, 1, arg);
  	}
--- 6919,6925 ----
  	  const REAL_VALUE_TYPE third_trunc =
  	    real_value_truncate (TYPE_MODE (type), dconstthird);
  	  arg = fold_build2 (MULT_EXPR, type,
! 			     CALL_EXPR_ARG0 (arg),
  			     build_real (type, third_trunc));
  	  return build_call_expr (expfn, 1, arg);
  	}

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