trans-array.c (CAF_TOKEN_FIELD): New macro constant.
authorTobias Burnus <burnus@net-b.de>
Tue, 26 Jul 2011 07:30:37 +0000 (09:30 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 26 Jul 2011 07:30:37 +0000 (09:30 +0200)
commitaf232d48a7e011bf85d12634644ce80c1ad6480d
tree7605607503ae92b280d32db1d07f72f9865b92a5
parent335d2e3964ccd360d718bbad6c9ff616acf8e65a
trans-array.c (CAF_TOKEN_FIELD): New macro constant.

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

        * trans-array.c (CAF_TOKEN_FIELD): New macro constant.
        (gfc_conv_descriptor_token): New function.
        * trans-array.h (gfc_conv_descriptor_token): New prototype.
        * trans-types.c (gfc_get_array_descriptor_base): For coarrays
        with -fcoarray=lib, append "void *token" to the array descriptor.
        (gfc_array_descriptor_base_caf): New static variable.
        * trans-expr.c (gfc_conv_procedure_call): Handle token and
        * offset
        when passing a descriptor coarray to a nondescriptor dummy.

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

        * gfortran.dg/coarray_lib_token_2.f90: New.

From-SVN: r176784
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_lib_token_2.f90 [new file with mode: 0644]