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
This commit is contained in:
Richard Guenther 2005-12-01 16:32:28 +00:00 committed by Richard Biener
parent 96fd03a4d5
commit b71b808628
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-12-01 Richard Guenther <rguenther@suse.de>
* fold-const.c (fold_binary): Use fold_build2, not
fold (build (...)).
2005-12-01 Nathan Sidwell <nathan@codesourcery.com>
* config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.

View file

@ -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);
}
}
}