diff options
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 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); |