Commit 7f991c36 by Aldy Hernandez Committed by Aldy Hernandez

re PR c/79116 (ICE on cilkplus array notation with a _Cilk_for)

	PR c/79116
	* array-notation-common.c (cilkplus_extract_an_triplets): Convert
	start type to integer_type.

From-SVN: r244533
parent c6b8b5e4
2017-01-17 Aldy Hernandez <aldyh@redhat.com>
PR c/79116
* array-notation-common.c (cilkplus_extract_an_triplets): Convert
start type to integer_type.
2017-01-16 Jakub Jelinek <jakub@redhat.com>
PR driver/49726
......
......@@ -628,7 +628,9 @@ cilkplus_extract_an_triplets (vec<tree, va_gc> *list, size_t size, size_t rank,
tree ii_tree = array_exprs[ii][jj];
(*node)[ii][jj].is_vector = true;
(*node)[ii][jj].value = ARRAY_NOTATION_ARRAY (ii_tree);
(*node)[ii][jj].start = ARRAY_NOTATION_START (ii_tree);
(*node)[ii][jj].start
= fold_build1 (CONVERT_EXPR, integer_type_node,
ARRAY_NOTATION_START (ii_tree));
(*node)[ii][jj].length
= fold_build1 (CONVERT_EXPR, integer_type_node,
ARRAY_NOTATION_LENGTH (ii_tree));
......
/* { dg-do compile } */
/* { dg-options "-fcilkplus" } */
int array[1024];
void foo()
{
_Cilk_for (int i = 0; i < 512; ++i)
array[:] = __sec_implicit_index(0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment