From: Richard Guenther Date: Thu, 1 Dec 2005 16:32:28 +0000 (+0000) Subject: fold-const.c (fold_binary): Use fold_build2, not fold (build (...)). X-Git-Tag: releases/gcc-4.2.0~5639 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b71b808628f0ea532035beeadb6e97419ed8a80e;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28a1856011ce..b7ba1b67c744 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 53f737dbe11a..dfac2eddb832 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); } } }