diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2010-05-17 18:16:27 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2010-05-17 18:16:27 +0000 |
commit | 58a1185978eed474a3ffbd730197b27955b6d022 (patch) | |
tree | 3d18f55db08e124ce177bd2a78779cbbf3c8412b /gcc/config/alpha | |
parent | ad13f2299cefa72529059e21385c4c49f1491181 (diff) | |
download | gcc-58a1185978eed474a3ffbd730197b27955b6d022.zip gcc-58a1185978eed474a3ffbd730197b27955b6d022.tar.gz gcc-58a1185978eed474a3ffbd730197b27955b6d022.tar.bz2 |
tree.h (CALL_EXPR_ARGS): Delete.
* tree.h (CALL_EXPR_ARGS): Delete.
(call_expr_arglist): Delete.
* tree.c (call_expr_arglist): Delete.
* builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
targetm.fold_builtin.
* config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
* config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
arglist parameter. Use CALL_EXPR_ARG.
(picochip_expand_builtin_3op): Likewise.
(picochip_expand_builtin_2opvoid): Likewise.
(picochip_expand_array_get): Likewise.
(picochip_expand_array_put): Likewise.
(picochip_expand_array_testport): Likewise.
(picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
rather than arglist.
* config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
CALL_EXPR_ARGS.
* config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
than TREE_VALUE and TREE_CHAIN.
* config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
* doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
the arglist.
From-SVN: r159502
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r-- | gcc/config/alpha/alpha.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index a123b11..7643267 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -7138,21 +7138,21 @@ alpha_fold_builtin_ctpop (unsigned HOST_WIDE_INT opint[], long op_const) /* Fold one of our builtin functions. */ static tree -alpha_fold_builtin (tree fndecl, tree arglist, bool ignore ATTRIBUTE_UNUSED) +alpha_fold_builtin (tree fndecl, tree call, bool ignore ATTRIBUTE_UNUSED) { - tree op[MAX_ARGS], t; + tree *op = CALL_EXPR_ARGP (call); unsigned HOST_WIDE_INT opint[MAX_ARGS]; - long op_const = 0, arity = 0; + long op_const = 0; + int arity; - for (t = arglist; t ; t = TREE_CHAIN (t), ++arity) + for (i = 0; i < call_expr_nargs (call); i++) { - tree arg = TREE_VALUE (t); + tree arg = CALL_EXPR_ARG (call, i); if (arg == error_mark_node) return NULL; if (arity >= MAX_ARGS) return NULL; - op[arity] = arg; opint[arity] = 0; if (TREE_CODE (arg) == INTEGER_CST) { |