diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2013-03-28 21:30:26 +0000 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2013-03-28 21:30:26 +0000 |
commit | eab19a1a95cfba787426931c9cb264a50f4983e4 (patch) | |
tree | de0dd9008c209a681b4e6c663313253716f5df2d /gcc/tree-data-ref.h | |
parent | 4099436d98dcdd96a0cbfd4332da1ddc961ba7f7 (diff) | |
download | gcc-eab19a1a95cfba787426931c9cb264a50f4983e4.zip gcc-eab19a1a95cfba787426931c9cb264a50f4983e4.tar.gz gcc-eab19a1a95cfba787426931c9cb264a50f4983e4.tar.bz2 |
re PR fortran/45159 (Unnecessary temporaries)
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.
From-SVN: r197217
Diffstat (limited to 'gcc/tree-data-ref.h')
0 files changed, 0 insertions, 0 deletions