aboutsummaryrefslogtreecommitdiff
path: root/gcc/analyzer
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2021-01-14 20:25:33 +0100
committerHarald Anlauf <anlauf@gmx.de>2021-01-14 20:25:33 +0100
commitbdd1b1f55529da00b867ef05a53a08fbfc3d1c2e (patch)
treef17fdbfa2b6eee1ecd66faa80e0292f69fef5c2c /gcc/analyzer
parent3651c1b5c9c0960e50f00ca5b59d144b8a586b5d (diff)
downloadgcc-bdd1b1f55529da00b867ef05a53a08fbfc3d1c2e.zip
gcc-bdd1b1f55529da00b867ef05a53a08fbfc3d1c2e.tar.gz
gcc-bdd1b1f55529da00b867ef05a53a08fbfc3d1c2e.tar.bz2
PR fortran/93340 - fix missed substring simplifications
Substrings were not reduced early enough for use in initializations, such as DATA statements. Add an early simplification for substrings with constant starting and ending points. gcc/fortran/ChangeLog: * gfortran.h (gfc_resolve_substring): Add prototype. * primary.c (match_string_constant): Simplify substrings with constant starting and ending points. * resolve.c: Rename resolve_substring to gfc_resolve_substring. (gfc_resolve_ref): Use renamed function gfc_resolve_substring. gcc/testsuite/ChangeLog: * substr_10.f90: New test. * substr_9.f90: New test.
Diffstat (limited to 'gcc/analyzer')
0 files changed, 0 insertions, 0 deletions