PR middle-end/91830 - Bogus -Warray-bounds on strcpy into a member
authorMartin Sebor <msebor@redhat.com>
Sat, 21 Sep 2019 22:32:59 +0000 (22:32 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sat, 21 Sep 2019 22:32:59 +0000 (16:32 -0600)
commit810118592aaa82a6dc460cf6234aa738bf9bbbea
tree520a60e61d8c61a5162d4ca8cbb0b7d09e60b3a1
parente4df9be4e2bb9f379d2737282f765f1ef6d8d2dd
PR middle-end/91830 - Bogus -Warray-bounds on strcpy into a member

PR middle-end/91830 - Bogus -Warray-bounds on strcpy into a member
of a subobject compiling binutils

gcc/ChangeLog:
* gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
Simplify computation of the offset of the referenced subobject.

gcc/testsuite/ChangeLog:
* gcc/testsuite/gcc.dg/Warray-bounds-47.c: New test.

From-SVN: r276022
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-47.c [new file with mode: 0644]