gfortran.texi: Document additional src/dst_type.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 19 Feb 2018 17:30:57 +0000 (18:30 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Mon, 19 Feb 2018 17:30:57 +0000 (18:30 +0100)
commit87e8aa3bd9787cf64314e41ee5b5261b389ad060
tree3596b4c57cc39c5cea01844218aa9c8517c168db
parentbbe57e1e55ec6c97fce0f5e9e6ce1dacf4cc0d34
gfortran.texi: Document additional src/dst_type.

gcc/fortran/ChangeLog:

2018-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

* gfortran.texi: Document additional src/dst_type.  Fix some typos.
* trans-decl.c (gfc_build_builtin_function_decls): Declare the new
argument of _caf_*_by_ref () with * e { get, send, sendget }.
* trans-intrinsic.c (gfc_conv_intrinsic_caf_get): Add the type of the
data referenced when generating a call to caf_get_by_ref ().
(conv_caf_send): Same but for caf_send_by_ref () and
caf_sendget_by_ref ().

gcc/testsuite/ChangeLog:

2018-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

* gfortran.dg/coarray_alloc_comp_6.f08: New test.
* gfortran.dg/coarray_alloc_comp_7.f08: New test.
* gfortran.dg/coarray_alloc_comp_8.f08: New test.

libgfortran/ChangeLog:

2018-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

* caf/libcaf.h: Add type parameters to the caf_*_by_ref prototypes.
* caf/single.c (get_for_ref): Simplifications and now respecting
the type argument.
(_gfortran_caf_get_by_ref): Added source type handing to get_for_ref().
(send_by_ref): Simplifications and respecting the dst_type now.
(_gfortran_caf_send_by_ref): Added destination type hand over to
send_by_ref().
(_gfortran_caf_sendget_by_ref): Added general support and fixed stack
corruption.  The function is now really usable.

From-SVN: r257813
gcc/fortran/ChangeLog
gcc/fortran/gfortran.texi
gcc/fortran/trans-decl.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_alloc_comp_6.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_alloc_comp_7.f08 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray_alloc_comp_8.f08 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/caf/libcaf.h
libgfortran/caf/single.c