From: Zdenek Dvorak Date: Sat, 12 Jan 2008 13:43:21 +0000 (+0100) Subject: tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type. X-Git-Tag: releases/gcc-4.3.0~641 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29ac1d9ae567169b767eb850b95632af389ef085;p=thirdparty%2Fgcc.git tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type. * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type. From-SVN: r131491 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5aff05dac40b..981518cdf70d 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 7639af6337e2..a6484b5b0c58 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;