libcaf.h: Add parameter stat to caf_get() and caf_send()'s function prototypes.
authorAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 22 Jul 2016 09:58:50 +0000 (11:58 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Fri, 22 Jul 2016 09:58:50 +0000 (11:58 +0200)
commit9fe9a3a780c9cd8f5fa45e162640b7169c27fe8f
tree1c0f3d1cddd27ab0187228634e40acedd23011c5
parent4971dd802d586f57d999152825d407800970be4e
libcaf.h: Add parameter stat to caf_get() and caf_send()'s function prototypes.

libgfortran/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

* caf/libcaf.h: Add parameter stat to caf_get() and
caf_send()'s function prototypes.
* caf/single.c (_gfortran_caf_get): Implement reporting
error using stat instead of abort().
(_gfortran_caf_send): Same.
(_gfortran_caf_sendget): Use NULL for stat when calling
caf_send().

gcc/testsuite/ChangeLog:

2016-07-22  Andre Vehreschild  <vehre@gcc.gnu.org>

* gfortran.dg/coarray_stat_2.f90: New test.

From-SVN: r238636
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_stat_2.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/caf/libcaf.h
libgfortran/caf/single.c