*ping* [patch, fortran, 4.9] Dependency and string length calculation improvements
Thomas Koenig
tkoenig@netcologne.de
Mon Mar 25 15:43:00 GMT 2013
*ping*
Slightly updated patch below, with a better test case as suggested
by Dominique.
OK for trunk?
2013-03-16 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-16 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/45159
* gfortran.dg/string_length_2.f90: New test.
* gfortran.dg/dependency_41.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p6.diff
Type: text/x-patch
Size: 10600 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130325/332486df/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string_length_2.f90
Type: text/x-fortran
Size: 1841 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130325/332486df/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_41.f90
Type: text/x-fortran
Size: 387 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20130325/332486df/attachment-0002.bin>
More information about the Fortran
mailing list