PR tree-optimization/85753 - missing -Wrestrict on memcpy into a member array
authorMartin Sebor <msebor@redhat.com>
Wed, 16 May 2018 02:30:38 +0000 (02:30 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 16 May 2018 02:30:38 +0000 (20:30 -0600)
commit7ad491c6368516f2fa649d215f1782011465bb60
tree15808048f761f3c987381ce81093173c0965ad25
parente4a148963e82ff2f34c794de0ad7ad3fa2e7b123
PR tree-optimization/85753 - missing -Wrestrict on memcpy into a member array

gcc/ChangeLog:

PR tree-optimization/85753
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Handle
RECORD_TYPE in addition to ARRAY_TYPE.

gcc/testsuite/ChangeLog:

PR tree-optimization/85753
* gcc.dg/Wrestrict-10.c: Adjust.
* gcc.dg/Wrestrict-16.c: New test.

From-SVN: r260280
gcc/ChangeLog
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wrestrict-10.c
gcc/testsuite/gcc.dg/Wrestrict-16.c [new file with mode: 0644]