https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78534
--- Comment #14 from Janne Blomqvist <jb at gcc dot gnu.org> --- Author: jb Date: Mon Jan 2 20:00:18 2017 New Revision: 244003 URL: https://gcc.gnu.org/viewcvs?rev=244003&root=gcc&view=rev Log: PR 78534 Modify string copy to avoid -Wstringop-overflow warning When the character length is changed from int to size_t the existing algorithm causes a -Wstringop-overflow warning with -O1 on the gfortran.dg/allocate_deferred_char_scalar_1.f03 testcase. This change is committed separately from the character length size change in order to make bisecting potential performance issues easier. 2017-01-02 Janne Blomqvist <j...@gcc.gnu.org> PR fortran/78534 * trans-expr.c (gfc_trans_string_copy): Rework string copy algorithm to avoid -Wstringop-overflow warning. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c