diff options
author | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-07-17 12:30:52 +0200 |
---|---|---|
committer | Andre Vehreschild <vehre@gcc.gnu.org> | 2024-08-20 09:32:09 +0200 |
commit | 35f56012806432fd89bbae431950a8dc5f6729a3 (patch) | |
tree | 181c1a99cac8d233d4a424b1de931f1116b7d722 /libgo/runtime/go-ffi.c | |
parent | db2e9a2a46f64b037494e8300c46f2d90a9fa55c (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
Fortran: Fix [Coarray] ICE in conv_caf_send, at fortran/trans-intrinsic.c:1950 [PR84246]HEADtrunkmaster
Fix ICE caused by converted expression already being pointer by checking
for its type. Lift rewrite to caf_send completely into resolve and
prevent more temporary arrays.
PR fortran/84246
gcc/fortran/ChangeLog:
* resolve.cc (caf_possible_reallocate): Detect arrays that may
be reallocated by caf_send.
(resolve_ordinary_assign): More reliably detect assignments
where a rewrite to caf_send is needed.
* trans-expr.cc (gfc_trans_assignment_1): Remove rewrite to
caf_send, because this is done by resolve now.
* trans-intrinsic.cc (conv_caf_send): Prevent unneeded temporary
arrays.
libgfortran/ChangeLog:
* caf/single.c (send_by_ref): Created array's lbound is now 1
and the offset set correctly.
gcc/testsuite/ChangeLog:
* gfortran.dg/coarray_allocate_7.f08: Adapt to array being
allocate by caf_send.
Diffstat (limited to 'libgo/runtime/go-ffi.c')
0 files changed, 0 insertions, 0 deletions