aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-12-01 16:32:28 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-12-01 16:32:28 +0000
commitb71b808628f0ea532035beeadb6e97419ed8a80e (patch)
tree2f1d0fc4850ea8c8f00ea8309f65a9c4bb74a99a /gcc/fold-const.c
parent96fd03a4d5c51d70222b2a2470699dfc52ee8d10 (diff)
downloadgcc-b71b808628f0ea532035beeadb6e97419ed8a80e.zip
gcc-b71b808628f0ea532035beeadb6e97419ed8a80e.tar.gz
gcc-b71b808628f0ea532035beeadb6e97419ed8a80e.tar.bz2
fold-const.c (fold_binary): Use fold_build2, not fold (build (...)).
2005-12-01 Richard Guenther <rguenther@suse.de> * fold-const.c (fold_binary): Use fold_build2, not fold (build (...)). From-SVN: r107822
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 53f737d..dfac2ed 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -8427,9 +8427,9 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1)
{
tree tmp = TREE_OPERAND (arg0, 1);
tmp = build_function_call_expr (cosfn, tmp);
- return fold (build (RDIV_EXPR, type,
+ return fold_build2 (RDIV_EXPR, type,
build_real (type, dconst1),
- tmp));
+ tmp);
}
}
}