diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-03-21 14:35:08 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-21 14:35:08 +0000 |
commit | 49d1af8985e7f1a889faa67f42937b1aee354ebd (patch) | |
tree | c303459a3f6f0861fbf059f297c852a327157fb1 /gcc/fold-const.c | |
parent | 9ce921aba837a0775de9abb3ea97e57d30f25e1f (diff) | |
download | gcc-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/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 848b167..2c4404b 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -9909,7 +9909,9 @@ fold_ternary (tree expr) && TREE_CODE (TREE_OPERAND (op0, 0)) == FUNCTION_DECL && DECL_BUILT_IN (TREE_OPERAND (op0, 0))) { - tree tmp = fold_builtin (t, false); + tree fndecl = get_callee_fndecl (t); + tree arglist = TREE_OPERAND (t, 1); + tree tmp = fold_builtin (fndecl, arglist, false); if (tmp) return tmp; } |