PR tree-optimization/86196 - Bogus -Wrestrict on memcpy between array elements at...
authorMartin Sebor <msebor@redhat.com>
Tue, 11 Dec 2018 01:22:08 +0000 (01:22 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 11 Dec 2018 01:22:08 +0000 (18:22 -0700)
commit1486eb791fce1b48d24075e281afd09864713e52
tree67f9b03a71809c4fd08239f8335cf2235efe5765
parent03da9b757be0d4b2b1770c10f7e6f68d286a01da
PR tree-optimization/86196 - Bogus -Wrestrict on memcpy between array elements at unequal indices

gcc/ChangeLog:

PR tree-optimization/86196
* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Use
base size only of arrays.

gcc/testsuite/ChangeLog:

PR tree-optimization/86196
* gcc.dg/Wrestrict-18.c: New test.

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