]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-parloops.c (transform_to_exit_first_loop): Cast nit to the correct type.
authorZdenek Dvorak <ook@ucw.cz>
Sat, 12 Jan 2008 13:43:21 +0000 (14:43 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Sat, 12 Jan 2008 13:43:21 +0000 (13:43 +0000)
* tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
correct type.

From-SVN: r131491

gcc/ChangeLog
gcc/tree-parloops.c

index 5aff05dac40b6073ad0d7f4536e2ec3564be2ec8..981518cdf70d1f9527dc0a496d4e9bf9fb92b5ad 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
+
+       * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
+       correct type.
+
 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
        
        * config/xtensa/xtensa.c (override_options): Set flag_shlib.
index 7639af6337e2e5b078f50be60aeb7615b696b99c..a6484b5b0c585ea6a71a81811b12496045245333 100644 (file)
@@ -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;