Use array_at_struct_end_p in tree-chkp.c (PR middle-end/68270).
commita0e158965d6c00d5d2633d136c758ee614cb744c
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Mar 2017 14:12:52 +0000 (7 14:12 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 7 Mar 2017 14:12:52 +0000 (7 14:12 +0000)
treeb1d44627f66da3cd00b3d8b9ca22eb9a53b37eb9
parenta62a4a7812d7920c69f8a2fb39ac4430902d9a23
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245951 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr68270.C [new file with mode: 0644]
gcc/tree-chkp.c