From c3e46927e4504374677f4e17838e6e51b5d7b185 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 4 May 2017 09:08:01 +0000 Subject: tree.c (array_at_struct_end_p): Handle arrays at struct end with flexarrays more conservatively. 2017-05-04 Richard Biener * tree.c (array_at_struct_end_p): Handle arrays at struct end with flexarrays more conservatively. Refactor and treat arrays of arrays or aggregates more strict. Fix VIEW_CONVERT_EXPR handling. Remove allow_compref argument. * tree.c (array_at_struct_end_p): Adjust prototype. * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust. * gimple-fold.c (get_range_strlen): Likewise. * tree-chkp.c (chkp_may_narrow_to_field): Likewise. From-SVN: r247581 --- gcc/emit-rtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/emit-rtl.c') diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index d7aba88..041f2a7 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1957,7 +1957,7 @@ set_mem_attributes_minus_bitpos (rtx ref, tree t, int objectp, || (TREE_CODE (t2) == COMPONENT_REF /* For trailing arrays t2 doesn't have a size that covers all valid accesses. */ - && ! array_at_struct_end_p (t, false))) + && ! array_at_struct_end_p (t))) { attrs.expr = t2; attrs.offset_known_p = false; -- cgit v1.1