]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do array index calculations in gfc_array_index_type
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Sep 2018 11:03:38 +0000 (11:03 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 23 Sep 2018 11:03:38 +0000 (11:03 +0000)
commitb3b24aa82c0ffc77f479e90e75197b517e184547
tree64b157df8c46f8fdeafe7720d1aa7c723b7b08a3
parent9a01ced682e18ac8b617fd39b5644d49569379d2
Do array index calculations in gfc_array_index_type

It was recently noticed that for a few of the coarray intrinsics array
index calculations were done in integer_type_node instead of
gfc_array_index_type.  This patch fixes this.

Regtested on x86_64-pc-linux-gnu.

gcc/fortran/ChangeLog:

2018-09-23  Janne Blomqvist  <jb@gcc.gnu.org>

* trans-expr.c (gfc_caf_get_image_index): Do array index
calculations in gfc_array_index_type.
* trans-intrinsic.c (conv_intrinsic_event_query): Likewise.
* trans-stmt.c (gfc_trans_lock_unlock): Likewise.
(gfc_trans_event_post_wait): Likewise.

gcc/testsuite/ChangeLog:

2018-09-23  Janne Blomqvist  <jb@gcc.gnu.org>

* gfortran.dg/coarray_lib_alloc_4.f90: Fix scan patterns.
* gfortran.dg/coarray_lock_7.f90: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264513 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/coarray_lib_alloc_4.f90
gcc/testsuite/gfortran.dg/coarray_lock_7.f90