]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/81773 ([Coarray] Get with vector index on lhs leads to incorrect caf_ge...
authorAndre Vehreschild <vehre@gcc.gnu.org>
Sat, 14 Apr 2018 14:45:59 +0000 (16:45 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sat, 14 Apr 2018 14:45:59 +0000 (16:45 +0200)
commit2368eaf95dff456f6527f6d82579af0246141553
treefea7ba6185a86b35c94ad0bdbf56b296b7bebc09
parentacd1559a0e07edca7e130e5fbc2d230ac8ba841c
re PR fortran/81773 ([Coarray] Get with vector index on lhs leads to incorrect caf_get_by_ref() call.)

gcc/fortran/ChangeLog:

2018-04-14  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/81773
PR fortran/83606
* dependency.c (gfc_dep_resolver): Coarray indexes are to be ignored
during dependency computation.  They define no data dependency.
* trans-array.c (conv_array_index_offset): The stride can not be set
here, prevent fail.
* trans-intrinsic.c (conv_caf_send): Add creation of temporary array
for caf_get's result and copying to the array with vectorial
indexing.

gcc/testsuite/ChangeLog:

2018-04-14  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/81773
PR fortran/83606
* gfortran.dg/coarray/get_to_indexed_array_1.f90: New test.
* gfortran.dg/coarray/get_to_indirect_array.f90: New test.

From-SVN: r259385
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/trans-array.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray/get_to_indexed_array_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/coarray/get_to_indirect_array.f90 [new file with mode: 0644]