From b71b808628f0ea532035beeadb6e97419ed8a80e Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 1 Dec 2005 16:32:28 +0000 Subject: [PATCH] fold-const.c (fold_binary): Use fold_build2, not fold (build (...)). 2005-12-01 Richard Guenther * fold-const.c (fold_binary): Use fold_build2, not fold (build (...)). From-SVN: r107822 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28a1856..b7ba1b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-12-01 Richard Guenther + + * fold-const.c (fold_binary): Use fold_build2, not + fold (build (...)). + 2005-12-01 Nathan Sidwell * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves. 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); } } } -- 2.7.4