diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5aff05dac40..981518cdf70 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-12 Zdenek Dvorak + + * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the + correct type. + 2008-01-11 Bob Wilson * config/xtensa/xtensa.c (override_options): Set flag_shlib. diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index 7639af6337e..a6484b5b0c5 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -1436,6 +1436,9 @@ transform_to_exit_first_loop (struct loop *loop, htab_t reduction_list, tree nit /* Initialize the control variable to NIT. */ bsi = bsi_after_labels (ex_bb); + nit = force_gimple_operand_bsi (&bsi, + fold_convert (TREE_TYPE (control_name), nit), + false, NULL_TREE, false, BSI_SAME_STMT); t = build_gimple_modify_stmt (control_name, nit); bsi_insert_before (&bsi, t, BSI_NEW_STMT); SSA_NAME_DEF_STMT (control_name) = t;