diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 03:46:30 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-25 03:46:30 +0000 |
commit | 6d105d503c5ae4e5fe7fb67fc0946fcf2502d545 (patch) | |
tree | 0ced8c74747bef5dcab5eaebad0dd4ca71da5d12 /gcc/c-gimplify.c | |
parent | f7041601cebde7d2e3f9e198a8a6b99dc81540cd (diff) | |
download | gcc-6d105d503c5ae4e5fe7fb67fc0946fcf2502d545.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-gimplify.c')
-rw-r--r-- | gcc/c-gimplify.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c index 44af046d1ee..811365e2746 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); |