]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make allocate with source work, some more offset fixes for implied this_image().
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 19 Dec 2020 19:49:03 +0000 (20:49 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sat, 19 Dec 2020 19:49:03 +0000 (20:49 +0100)
commit76453c3247faca6dfcf72ec04644e1cb87648d1f
tree39ce071417f5fc6463b7732d572232c33ac73840
parent96c23f6580238cb8366fa0ae964ce6f3bf7da653
Make allocate with source work, some more offset fixes for implied this_image().

gcc/fortran/ChangeLog:

* options.c (gfc_post_options): Always set flag_debug_aux_vars for
shared coarrays.
* resolve.c (gfc_expr_to_initialize): Set extra dimensions to
DIMEN_THIS_IMAGE.
* trans-array.c (cas_add_strides): Re-introduce.
(cas_add_this_image_offset): Rename add_lbound to
correct_full_offset, use cas_add_strides.

gcc/testsuite/ChangeLog:

* gfortran.dg/caf-shared/alloc_coarray_with_source_1.f90: New test.
* gfortran.dg/caf-shared/cobounds_torture_1.f90: New test.
* gfortran.dg/caf-shared/cobounds_torture_2.f90: New test.
* gfortran.dg/caf-shared/cobounds_torture_3.f90: New test.
gcc/fortran/options.c
gcc/fortran/resolve.c
gcc/fortran/trans-array.c
gcc/testsuite/gfortran.dg/caf-shared/alloc_coarray_with_source_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/caf-shared/cobounds_torture_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/caf-shared/cobounds_torture_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/caf-shared/cobounds_torture_3.f90 [new file with mode: 0644]