]> 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, 28 Apr 2018 14:54:20 +0000 (16:54 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sat, 28 Apr 2018 14:54:20 +0000 (16:54 +0200)
commitda5d5f16105c6cdfe4e156f979b2d9bc34281ede
treeb3320a84d40dfff46c22eb8e499fe943d322fda0
parent77922dcd01b768fa40f98204c89562e1e0bff953
re PR fortran/81773 ([Coarray] Get with vector index on lhs leads to incorrect caf_get_by_ref() call.)

gcc/fortran/ChangeLog:

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

PR fortran/81773
PR fortran/83606
Backport from trunk
* 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-28  Andre Vehreschild  <vehre@gcc.gnu.org>

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

From-SVN: r259742
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]