OSDN Git Service

* cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 21:50:00 +0000 (21:50 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 21:50:00 +0000 (21:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108192 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ea7b82b..cf27990 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 aa71746..2eb4ae9 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)