diff options
author | Janne Blomqvist <jb@gcc.gnu.org> | 2017-01-02 22:00:18 +0200 |
---|---|---|
committer | Janne Blomqvist <jb@gcc.gnu.org> | 2017-01-02 22:00:18 +0200 |
commit | 096308ba6c4b48af66c8cc3dc689f2760c024e2f (patch) | |
tree | 6098f1ffe583ce60a2d838f34ba3f577cda89e63 /gcc/fortran/class.c | |
parent | a94d23fc69de8d286f507b497e1af626771a447c (diff) | |
download | gcc-096308ba6c4b48af66c8cc3dc689f2760c024e2f.zip gcc-096308ba6c4b48af66c8cc3dc689f2760c024e2f.tar.gz gcc-096308ba6c4b48af66c8cc3dc689f2760c024e2f.tar.bz2 |
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.
From-SVN: r244003
Diffstat (limited to 'gcc/fortran/class.c')
0 files changed, 0 insertions, 0 deletions