diff options
author | Ilya Enkovich <ilya.enkovich@intel.com> | 2014-12-01 12:43:04 +0000 |
---|---|---|
committer | Ilya Enkovich <ienkovich@gcc.gnu.org> | 2014-12-01 12:43:04 +0000 |
commit | 152ceb59c5cbf96a033816d38248273c3b5ceb2a (patch) | |
tree | ac7ff04651161129cbb6c47f66378011c4356d7d /gcc/tree-chkp.c | |
parent | c78f1e25a5b020c1b72b16263a439f869ab0f696 (diff) | |
download | gcc-152ceb59c5cbf96a033816d38248273c3b5ceb2a.tar.gz |
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
Diffstat (limited to 'gcc/tree-chkp.c')
-rw-r--r-- | gcc/tree-chkp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-chkp.c b/gcc/tree-chkp.c index 3e386918e01..6665ce25fca 100644 --- a/gcc/tree-chkp.c +++ b/gcc/tree-chkp.c @@ -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++) |