diff mbox

[Cilkplus] Added a int cast

Message ID BF230D13CA30DD48930C31D4099330000118FD@FMSMSX102.amr.corp.intel.com
State New
Headers show

Commit Message

Iyer, Balaji V Jan. 16, 2012, 4:38 p.m. UTC
Hello Everyone,
    This patch is for the Cilkplus branch. It adds a "(int)" cast for a for loop condition which uses VEC_length.

Thanking You,

Yours Sincerely,

Balaji V. Iyer.
diff mbox

Patch

diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk
index b51ddcd..8d65ca2 100644
--- a/gcc/ChangeLog.cilk
+++ b/gcc/ChangeLog.cilk
@@ -1,3 +1,8 @@ 
+2011-01-16  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+	* cilk.c (cilk_remove_annotated_functions): Added a int cast for
+	VEC_length in for-loop condition.
+
 2011-12-25  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
 	* c-array-notations.c (find_rank): Added a check for CALL_EXPR and
diff --git a/gcc/cilk.c b/gcc/cilk.c
index 6b97a6a..cc4ddcd 100644
--- a/gcc/cilk.c
+++ b/gcc/cilk.c
@@ -1155,7 +1155,7 @@  cilk_remove_annotated_functions (rtx first)
 	    }
 	}
     }
-  for (ii = 0; ii < VEC_length (rtx, rtx_delete_list); ii++)
+  for (ii = 0; ii < (int)VEC_length (rtx, rtx_delete_list); ii++)
     remove_insn (VEC_index (rtx, rtx_delete_list, ii));
   
   return;