]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Wed, 7 Dec 2005 21:50:00 +0000 (21:50 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Wed, 7 Dec 2005 21:50:00 +0000 (21:50 +0000)
From-SVN: r108192

gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c

index ea7b82b3a772e58908805f2ebc9fd407c41efa28..cf27990a42b916276eaf0af861ddda1fb9751eb1 100644 (file)
@@ -1,3 +1,7 @@
+2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       * cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
+
 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
 
        * Make-lang.in (c++.all.build, c++.install-normal): Remove.
index aa7174688de0312d4e37af3feea2ad52d8e173a1..2eb4ae9f6c0849f96c6668d67cf474db7a4c50a6 100644 (file)
@@ -247,8 +247,7 @@ gimplify_cp_loop (tree cond, tree body, tree incr, bool cond_is_first)
       if (cond && !integer_nonzerop (cond))
        {
          t = build_bc_goto (bc_break);
-         exit = build3 (COND_EXPR, void_type_node, cond, exit, t);
-         exit = fold (exit);
+         exit = fold_build3 (COND_EXPR, void_type_node, cond, exit, t);
          gimplify_stmt (&exit);
 
          if (cond_is_first)