r244003 - in /trunk/gcc/fortran: ChangeLog tran...

jb@gcc.gnu.org jb@gcc.gnu.org
Mon Jan 2 20:00:00 GMT 2017


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  <jb@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



More information about the Gcc-cvs mailing list