expr.c (gfc_ref_this_image): New function.
authorTobias Burnus <burnus@gcc.gnu.org>
Sat, 16 Jul 2011 17:31:13 +0000 (19:31 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 16 Jul 2011 17:31:13 +0000 (19:31 +0200)
commitbadd9e6941c34112f782bf955877fe041dd20cc4
treeb24dfbdc16df4c03a65f16b253941afeb464c428
parent0fa714476569f264d2b40130d06ba2b16cecdb3e
expr.c (gfc_ref_this_image): New function.

2011-07-16  Tobias Burnus  <burnus@net-b.de>

        * expr.c (gfc_ref_this_image): New function.
        (gfc_is_coindexed): Use it.
        * gfortran.h (gfc_ref_this_image): New prototype.
        * resolve.c (resolve_deallocate_expr,
        resolve_allocate_expr): Support alloc scalar coarrays.
        * trans-array.c (gfc_conv_array_ref, gfc_array_init_size,
        gfc_conv_descriptor_cosize, gfc_array_allocate,
        gfc_trans_deferred_array): Ditto.
        * trans-expr.c (gfc_conv_variable) Ditto.:
        * trans-stmt.c (gfc_trans_deallocate): Ditto.
        * trans-types.c (gfc_get_element_type, gfc_get_array_type_bounds
        gfc_get_array_descr_info): Ditto.
        * trans-decl.c (gfc_get_symbol_decl): Ditto.

2011-07-16  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_14.f90: Remove dg-error "sorry not
        * implemented".
        * gfortran.dg/coarray_7.f90: Ditto.
        * gfortran.dg/coarray/scalar_alloc_1.f90: New.
        * gfortran.dg/coarray/scalar_alloc_2.f90: New.

From-SVN: r176358
14 files changed:
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/trans-array.c
gcc/fortran/trans-decl.c
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray/scalar_alloc_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray/scalar_alloc_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_14.f90
gcc/testsuite/gfortran.dg/coarray_7.f90