trans-expr.c (gfc_conv_substring): Check for empty substring.
authorTobias Schlüter <tobi@gcc.gnu.org>
Tue, 12 Dec 2006 20:59:21 +0000 (21:59 +0100)
committerTobias Schlüter <tobi@gcc.gnu.org>
Tue, 12 Dec 2006 20:59:21 +0000 (21:59 +0100)
commitad7082e3d95afb5f313a8663050876ef5fd35534
treeebe6161c8b4daad75b3bc7aef87776ccb21980b5
parent0cf9e3a4be73380dd59958bc800f83e04893afb0
trans-expr.c (gfc_conv_substring): Check for empty substring.

fortran/
* trans-expr.c (gfc_conv_substring): Check for empty substring.
testsuite/
* lib/fortran-torture.exp: Update copyright years.  Remove
obsolete comment.  Test -ftree-vectorize where it makes sense.
* lib/gfortran-dg.exp: Update copyright years.  Use settings
from fortran-torture.exp.
* gfortran.dg/char_transpose_1.f90,
gfortran.dg/char_spread_1.f90, gfortran.dg/g77/dnrm2.f,
gfortran.dg/dependent_decls_1.f90: Fixout-of-bound errors.
* gfortran.dg/enum_10.f90, gfortran.dg/mixed_io_1.f90:  Add
'-w' to dg-options.

From-SVN: r119797
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/char_spread_1.f90
gcc/testsuite/gfortran.dg/char_transpose_1.f90
gcc/testsuite/gfortran.dg/dependent_decls_1.f90
gcc/testsuite/gfortran.dg/enum_10.f90
gcc/testsuite/gfortran.dg/g77/dnrm2.f
gcc/testsuite/gfortran.dg/mixed_io_1.f90
gcc/testsuite/lib/fortran-torture.exp
gcc/testsuite/lib/gfortran-dg.exp