Use array_at_struct_end_p in tree-chkp.c (PR middle-end/68270).
authorMartin Liska <mliska@suse.cz>
Tue, 7 Mar 2017 14:12:52 +0000 (15:12 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 7 Mar 2017 14:12:52 +0000 (14:12 +0000)
commita5e9e3e458eed168c8357a5252d4a6437069a7eb
treeb1d44627f66da3cd00b3d8b9ca22eb9a53b37eb9
parent5281a167eaf420235edcd5b47425d54a13ff74af
Use array_at_struct_end_p in tree-chkp.c (PR middle-end/68270).

2017-03-07  Martin Liska  <mliska@suse.cz>

PR middle-end/68270
* tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
Use array_at_struct_end_p instead of DECL_CHAIN (field).
(chkp_narrow_bounds_for_field): Likewise.
(chkp_parse_array_and_component_ref): Pass one more argument to
call.
2017-03-07  Martin Liska  <mliska@suse.cz>

PR middle-end/68270
* g++.dg/pr68270.C: New test.

From-SVN: r245951
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr68270.C [new file with mode: 0644]
gcc/tree-chkp.c