aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-gimplify.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2004-06-25 03:46:30 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2004-06-24 23:46:30 -0400
commitfff34d356a721134207d6545fc134a412af8f885 (patch)
tree0ced8c74747bef5dcab5eaebad0dd4ca71da5d12 /gcc/c-gimplify.c
parent77db1f411d9b7d9cf865b119ea09aadc92238a81 (diff)
downloadgcc-fff34d356a721134207d6545fc134a412af8f885.zip
gcc-fff34d356a721134207d6545fc134a412af8f885.tar.gz
gcc-fff34d356a721134207d6545fc134a412af8f885.tar.bz2
c-gimplify.c (gimplify_for_stmt): Use gimplify_and_add.
* c-gimplify.c (gimplify_for_stmt): Use gimplify_and_add. * gimplify.c (internal_get_tmp_var, gimplify_return_expr): Likewise. (gimplify_loop_expr, gimplify_init_constructor): Likewise. (gimplify_self_mod_expr, gimplify_cond_expr): Likewise. From-SVN: r83634
Diffstat (limited to 'gcc/c-gimplify.c')
-rw-r--r--gcc/c-gimplify.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c
index 44af046..811365e 100644
--- a/gcc/c-gimplify.c
+++ b/gcc/c-gimplify.c
@@ -411,10 +411,8 @@ gimplify_for_stmt (tree *stmt_p, tree *pre_p)
tree stmt = *stmt_p;
if (FOR_INIT_STMT (stmt))
- {
- gimplify_stmt (&FOR_INIT_STMT (stmt));
- append_to_statement_list (FOR_INIT_STMT (stmt), pre_p);
- }
+ gimplify_and_add (FOR_INIT_STMT (stmt), pre_p);
+
*stmt_p = gimplify_c_loop (FOR_COND (stmt), FOR_BODY (stmt),
FOR_EXPR (stmt), 1);