diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2005-12-07 21:50:00 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2005-12-07 21:50:00 +0000 |
commit | 3a0fddeed44ee129f34a0b82f1ec22bc930ce417 (patch) | |
tree | f6a6fb23a7aff48ee690742f1c36eac3dd4f1def | |
parent | c3e23a08b554d8440add3191dabfd54b1d36ca88 (diff) | |
download | gcc-3a0fddeed44ee129f34a0b82f1ec22bc930ce417.zip gcc-3a0fddeed44ee129f34a0b82f1ec22bc930ce417.tar.gz gcc-3a0fddeed44ee129f34a0b82f1ec22bc930ce417.tar.bz2 |
* cp-gimplify.c (gimplify_cp_loop): Use fold_build3.
From-SVN: r108192
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/cp-gimplify.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ea7b82b..cf27990 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/cp-gimplify.c b/gcc/cp/cp-gimplify.c index aa71746..2eb4ae9 100644 --- a/gcc/cp/cp-gimplify.c +++ b/gcc/cp/cp-gimplify.c @@ -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) |