https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86196

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Dec 11 01:22:08 2018
New Revision: 266967

URL: https://gcc.gnu.org/viewcvs?rev=266967&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/Wrestrict-18.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-ssa-warn-restrict.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to