re PR fortran/52861 ((missed optimisation) missed transformation to memset with -O3)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 7 Jun 2012 11:11:55 +0000 (11:11 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 7 Jun 2012 11:11:55 +0000 (11:11 +0000)
commit94d145bf5bb4260cb02d43434ab48eb6d6ffe0cd
tree45b7207b0fa91090d90b3a9db729bafd16702830
parentd8a5e488d5a4df076006e84e2ad3e31b74501e13
re PR fortran/52861 ((missed optimisation) missed transformation to memset with -O3)

2012-06-07  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/52861
* frontend-passes (empty_string):  Add prototype.
(optimize_assignment):  Set the length of an empty string
constant to zero.

2012-06-07  Thomas König  <tkoenig@gcc.gnu.org>

PR fortran/52861
* gfortran.dg/string_assign_1.f90:  New test case.

From-SVN: r188300
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_assign_1.f90 [new file with mode: 0644]