fortran/
* expr.c (gfc_copy_expr): Don't copy 'op1' and 'op2' for EXPR_SUBSTRING. (gfc_is_constant_expr): Check 'ref' to determine if substring reference is constant. (gfc_simplify_expr): Simplify 'ref' instead of 'op1' and 'op2'. (check_init_expr, check_restricted): Check 'ref' instead of 'op1' and 'op2'. * module.c (mio_expr): Read / write 'ref' instead of 'op1' and 'op2'. testsuite/ * gfortran.dg/substr_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94735 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/fortran/ChangeLog 11 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/expr.c 7 additions, 11 deletionsgcc/fortran/expr.c
- gcc/fortran/module.c 1 addition, 2 deletionsgcc/fortran/module.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/substr_1.f90 13 additions, 0 deletionsgcc/testsuite/gfortran.dg/substr_1.f90
Loading
Please register or sign in to comment