This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/81773] [Coarray] Get with vector index on lhs leads to incorrect caf_get_by_ref() call.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81773

--- Comment #5 from vehre at gcc dot gnu.org ---
Author: vehre
Date: Sat Apr 14 14:45:59 2018
New Revision: 259385

URL: https://gcc.gnu.org/viewcvs?rev=259385&root=gcc&view=rev
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/coarray/get_to_indexed_array_1.f90
    trunk/gcc/testsuite/gfortran.dg/coarray/get_to_indirect_array.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/dependency.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]