diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-20 15:54:41 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-20 15:54:41 +0000 |
commit | 0ab8af67b59232e33c0a0b399222f68dd9134b10 (patch) | |
tree | 1504ede87f8c3e471149f7013b2d309d4798b67a /gcc/config/alpha | |
parent | 113a8828735449dffb3f9e2dbac00ae4235b68d2 (diff) | |
download | gcc-0ab8af67b59232e33c0a0b399222f68dd9134b10.tar.gz |
* builtins.c (fold_builtin_1): Update a call to
targetm.fold_builtin.
* hooks.c (hook_tree_tree_bool_null): Rename to
hook_tree_tree_tree_bool_null. Take one more argument of type
tree.
* hooks.h: Update the prototype of hook_tree_tree_bool_null.
* target-def.h (TARGET_FOLD_BUILTIN): Define it as
hook_tree_tree_tree_bool_null.
* target.h (gcc_target): Update the prototype of fold_builtin.
* config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
arguments of CALL_EXPR.
* doc/tm.texi (TARGET_FOLD_BUILTIN): Update. Mention the
new prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96762 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r-- | gcc/config/alpha/alpha.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 102f568e2a4..67575e62dac 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -6499,14 +6499,13 @@ alpha_fold_builtin_ctpop (unsigned HOST_WIDE_INT opint[], long op_const) /* Fold one of our builtin functions. */ static tree -alpha_fold_builtin (tree exp, bool ignore ATTRIBUTE_UNUSED) +alpha_fold_builtin (tree fndecl, tree arglist, bool ignore ATTRIBUTE_UNUSED) { - tree fndecl = get_callee_fndecl (exp); tree op[MAX_ARGS], t; unsigned HOST_WIDE_INT opint[MAX_ARGS]; long op_const = 0, arity = 0; - for (t = TREE_OPERAND (exp, 1); t ; t = TREE_CHAIN (t), ++arity) + for (t = arglist; t ; t = TREE_CHAIN (t), ++arity) { tree arg = TREE_VALUE (t); if (arg == error_mark_node) |