diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-01 16:32:28 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-01 16:32:28 +0000 |
commit | f9c71cdf0be65712f9815f808d2d3d4bb82fad52 (patch) | |
tree | 2f1d0fc4850ea8c8f00ea8309f65a9c4bb74a99a /gcc/fold-const.c | |
parent | cd227334edb210c5a05ce2efb6eee1dfb2c63aad (diff) | |
download | gcc-f9c71cdf0be65712f9815f808d2d3d4bb82fad52.tar.gz |
2005-12-01 Richard Guenther <rguenther@suse.de>
* fold-const.c (fold_binary): Use fold_build2, not
fold (build (...)).
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107822 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 53f737dbe11..dfac2eddb83 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); } } } |