This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r177970 - in /branches/gcc-4_6-branch/gcc: fort...
- From: mikael at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2011 20:03:00 -0000
- Subject: r177970 - in /branches/gcc-4_6-branch/gcc: fort...
Author: mikael
Date: Mon Aug 22 20:03:00 2011
New Revision: 177970
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=177970
Log:
2011-08-22 Mikael Morin <mikael.morin@gcc.gnu.org>
PR fortran/50050
* gfortran.h (gfc_clear_shape, gfc_free_shape): New prototypes.
* expr.c (gfc_clear_shape, gfc_free_shape): New functions.
(free_expr0): Re-use gfc_free_shape.
* trans-expr.c (gfc_trans_subarray_assign): Ditto.
* trans-io.c (transfer_array_component): Ditto.
* resolve.c (check_host_association): Ditto.
(gfc_expr_to_initialize): Don't force the rank value and free the shape
after updating the expression. Recalculate shape and rank.
(resolve_where_shape): Re-use gfc_clear_shape.
* array.c (gfc_array_ref_shape): Ditto.
2011-08-22 Mikael Morin <mikael.morin@gcc.gnu.org>
PR fortran/50050
* gfortran.dg/alloc_comp_initializer_3.f90: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gfortran.dg/alloc_comp_initializer_3.f90
Modified:
branches/gcc-4_6-branch/gcc/fortran/ChangeLog
branches/gcc-4_6-branch/gcc/fortran/array.c
branches/gcc-4_6-branch/gcc/fortran/expr.c
branches/gcc-4_6-branch/gcc/fortran/gfortran.h
branches/gcc-4_6-branch/gcc/fortran/resolve.c
branches/gcc-4_6-branch/gcc/fortran/trans-expr.c
branches/gcc-4_6-branch/gcc/fortran/trans-io.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog