]> git.ipfire.org Git - thirdparty/gcc.git/commit
2013-03-28 Thomas Koenig <tkoenig@gcc.gnu.org>
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2013 21:30:26 +0000 (21:30 +0000)
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Mar 2013 21:30:26 +0000 (21:30 +0000)
commita642efd61c1e3211a16ea7f3010aa30cdf31d0b2
treede0dd9008c209a681b4e6c663313253716f5df2d
parentd9bf1d745fa0f988094d0b9dcefec8edb6031b38
2013-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* gfortran.h (gfc_dep_difference):  Add prototype.
* dependency.c (discard_nops):  New function.
(gfc_dep_difference):  New function.
(check_section_vs_section):  Use gfc_dep_difference
to calculate the difference of starting indices.
* trans-expr.c (gfc_conv_substring):  Use
gfc_dep_difference to calculate the length of
substrings where possible.

2013-03-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/45159
* gfortran.dg/string_length_2.f90:  New test.
* gfortran.dg/dependency_41.f90:  New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197217 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/gfortran.h
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_41.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/string_length_2.f90 [new file with mode: 0644]