re PR fortran/78758 (Warning: '__builtin_memcpy' ... overflows the destination for...
authorJakub Jelinek <jakub@redhat.com>
Sat, 10 Dec 2016 08:02:21 +0000 (09:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 10 Dec 2016 08:02:21 +0000 (09:02 +0100)
commit2d4102c5cbe74a27b7ec64e3d90404e3d3707b6f
treeed5bebc41f71dbb9725b566add5765cfd89508a5
parentd89ee6dbda67e1e3efd38cecb003bb2e52b52858
re PR fortran/78758 (Warning: '__builtin_memcpy' ... overflows the destination for string assignment)

PR fortran/78758
* tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
non-zero low bound or non-standard element sizes.

* gfortran.dg/pr78758.f90: New test.
* gfortran.dg/pr38868.f: Remove again bogus warning.

From-SVN: r243515
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr38868.f
gcc/testsuite/gfortran.dg/pr78758.f90 [new file with mode: 0644]
gcc/tree-object-size.c