]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
fold-const.c (fold_binary): Use fold_build2, not fold (build (...)).
authorRichard Guenther <rguenther@suse.de>
Thu, 1 Dec 2005 16:32:28 +0000 (16:32 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 1 Dec 2005 16:32:28 +0000 (16:32 +0000)
2005-12-01  Richard Guenther  <rguenther@suse.de>

        * fold-const.c (fold_binary): Use fold_build2, not
        fold (build (...)).

From-SVN: r107822

gcc/ChangeLog
gcc/fold-const.c

index 28a1856011ce62087dec4b6c0c9f29c5c9e9d462..b7ba1b67c7447587acda5693a62b73dc83106185 100644 (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.
index 53f737dbe11ac1375b490c8871196899371e9fec..dfac2eddb832ac6e3ac31b1133c1d50c23ccc450 100644 (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);
                    }
                }
            }