From 97d6714632dc69c9f1341966666a141497221d24 Mon Sep 17 00:00:00 2001 From: froydnj Date: Wed, 19 May 2010 16:23:27 +0000 Subject: * hooks.h (hook_tree_tree_tree_bool_null): Rename to... (hook_tree_tree_int_treep_bool_null): ...this. Update signature. * hooks.c: Likewise. * target-def.h (TARGET_FOLD_BUILTIN): Define to hook_tree_tree_int_treep_bool_null. * target.h: (struct gcc_target): Update signature of fold_builtin field. * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature. * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP instead of the call expression. (fold_builtin_call_array): Pass n and argarray directly. (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of consing a list. * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift MAX_ARGS check out of the loop. Delete declaration of `arity', declare `i' and use it in place of `arity'. * config/sparc/sparc.c (sparc_fold_builtin): Update signature. Dereference `args' directly. * config/xtensa/xtensa (xtensa_fold_builtin): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159585 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/hooks.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/hooks.c') diff --git a/gcc/hooks.c b/gcc/hooks.c index aac44485898..97e10646088 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -299,9 +299,10 @@ hook_constcharptr_const_tree_null (const_tree t ATTRIBUTE_UNUSED) } tree -hook_tree_tree_tree_bool_null (tree t0 ATTRIBUTE_UNUSED, - tree t1 ATTRIBUTE_UNUSED, - bool ignore ATTRIBUTE_UNUSED) +hook_tree_tree_int_treep_bool_null (tree t0 ATTRIBUTE_UNUSED, + int i ATTRIBUTE_UNUSED, + tree *p ATTRIBUTE_UNUSED, + bool ignore ATTRIBUTE_UNUSED) { return NULL; } -- cgit v1.2.1