aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-03-21 14:35:08 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-03-21 14:35:08 +0000
commit49d1af8985e7f1a889faa67f42937b1aee354ebd (patch)
treec303459a3f6f0861fbf059f297c852a327157fb1 /gcc/builtins.c
parent9ce921aba837a0775de9abb3ea97e57d30f25e1f (diff)
downloadgcc-49d1af8985e7f1a889faa67f42937b1aee354ebd.zip
gcc-49d1af8985e7f1a889faa67f42937b1aee354ebd.tar.gz
gcc-49d1af8985e7f1a889faa67f42937b1aee354ebd.tar.bz2
builtins.c (fold_builtin): Take decomposed arguments of CALL_EXPR.
* builtins.c (fold_builtin): Take decomposed arguments of CALL_EXPR. * fold-const.c (fold_ternary): Update a call to fold_builtin. * gimplify.c (gimplify_call_expr): Likewise. * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise. * tree.h: Update the prototype of fold_builtin. From-SVN: r96800
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index e326c15..94fa627 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -8296,12 +8296,9 @@ fold_builtin_1 (tree fndecl, tree arglist, bool ignore)
call node earlier than the warning is generated. */
tree
-fold_builtin (tree exp, bool ignore)
+fold_builtin (tree fndecl, tree arglist, bool ignore)
{
- tree fndecl = get_callee_fndecl (exp);
- tree arglist = TREE_OPERAND (exp, 1);
-
- exp = fold_builtin_1 (fndecl, arglist, ignore);
+ tree exp = fold_builtin_1 (fndecl, arglist, ignore);
if (exp)
{
/* ??? Don't clobber shared nodes such as integer_zero_node. */