re PR fortran/47065 (Replace trim(a) by a(1:len_trim(a)))
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 27 Mar 2011 17:40:26 +0000 (17:40 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 27 Mar 2011 17:40:26 +0000 (17:40 +0000)
commit7e3b6543e0a188283f2307019e835eeb77cdf795
tree5f8e7e59135cea0ccb12d23b4052ba0a4b3989dd
parent15ea09a082e6964a4abbc49a6834cf5ab705813a
re PR fortran/47065 (Replace trim(a) by a(1:len_trim(a)))

2011-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/47065
* frontend-passes (optimize_trim): Also follow references, except
when they are substring references or array references.

2011-03-27  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/47065
* gfortran.dg/trim_optimize_5.f90:  New test.
* gfortran.dg/trim_optimize_6.f90:  New test.

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