* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an
commit69ac5e6150ff3db96156a17f93382f9ef9438611
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2018 23:11:10 +0000 (16 23:11 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Jan 2018 23:11:10 +0000 (16 23:11 +0000)
treeb35c60a150370db2798b69a8e8ebc0a4b3109841
parentc943fc7bb48344510dde08e79d8ddaed0eb2b491
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an
ADDR_EXPR, do not count the offset of a COMPONENT_REF twice.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256766 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Warray-bounds-3.c