Commit 152ceb59 by Ilya Enkovich Committed by Ilya Enkovich

re PR target/64055 (gnat.dg/derived_aggregate.adb FAILs on 32-bit i386)

	PR target/64055
	* tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
	values in array domain.

From-SVN: r218207
parent c78f1e25
2014-12-01 Ilya Enkovich <ilya.enkovich@intel.com>
PR target/64055
* tree-chkp.c (chkp_find_bound_slots_1): Allow non constant
values in array domain.
2014-12-01 Yuri Rumyantsev <ysrumyan@gmail.com>
PR tree-optimization/63941
......@@ -1565,7 +1565,9 @@ chkp_find_bound_slots_1 (const_tree type, bitmap have_bound,
HOST_WIDE_INT esize = TREE_INT_CST_LOW (TYPE_SIZE (etype));
unsigned HOST_WIDE_INT cur;
if (!maxval || integer_minus_onep (maxval))
if (!maxval
|| TREE_CODE (maxval) != INTEGER_CST
|| integer_minus_onep (maxval))
return;
for (cur = 0; cur <= TREE_INT_CST_LOW (maxval); cur++)
......
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