gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an ADDR_EXPR, do...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 16 Jan 2018 23:11:10 +0000 (23:11 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 16 Jan 2018 23:11:10 +0000 (23:11 +0000)
commit12b38cca4a25ca8dcda775ebdbcb57e4c622eb0b
treeb35c60a150370db2798b69a8e8ebc0a4b3109841
parent035181c3129648328176cbdee69d2a7a66e0a895
gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an ADDR_EXPR, do not count the offset of a COMPONENT_REF twice.

* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): For an
ADDR_EXPR, do not count the offset of a COMPONENT_REF twice.

From-SVN: r256766
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Warray-bounds-3.c