From 152ceb59c5cbf96a033816d38248273c3b5ceb2a Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Mon, 1 Dec 2014 12:43:04 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-chkp.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bf7a61afa31..7aeb9bf3844 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-12-01 Ilya Enkovich + + PR target/64055 + * tree-chkp.c (chkp_find_bound_slots_1): Allow non constant + values in array domain. + 2014-12-01 Yuri Rumyantsev PR tree-optimization/63941 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++) -- 2.30.2