gcc/libgfortran
Andre Vehreschild 35f5601280 Fortran: Fix [Coarray] ICE in conv_caf_send, at fortran/trans-intrinsic.c:1950 [PR84246]
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.
2024-08-20 09:32:09 +02:00
..
caf Fortran: Fix [Coarray] ICE in conv_caf_send, at fortran/trans-intrinsic.c:1950 [PR84246] 2024-08-20 09:32:09 +02:00
config libgfortran: implement fpu-macppc for Darwin, support IEEE arithmetic 2024-08-18 18:54:27 +02:00
generated
ieee
intrinsics
io Fortran: Suppress wrong End Of File error with user defined IO. 2024-07-25 09:01:19 -07:00
m4
runtime Fortran: Fix rejecting class arrays of different ranks as storage association argument and add un/pack_class. [PR96992] 2024-07-11 09:47:44 +02:00
acinclude.m4
aclocal.m4
c99_protos.h
ChangeLog Daily bump. 2024-08-19 00:18:24 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
ChangeLog-2021
ChangeLog-2022
ChangeLog-2023
config.h.in
configure nvptx, libgfortran: Switch out of "minimal" mode 2024-06-06 13:41:47 +02:00
configure.ac nvptx, libgfortran: Switch out of "minimal" mode 2024-06-06 13:41:47 +02:00
configure.host libgfortran: implement fpu-macppc for Darwin, support IEEE arithmetic 2024-08-18 18:54:27 +02:00
gfortran.map Fortran: Fix rejecting class arrays of different ranks as storage association argument and add un/pack_class. [PR96992] 2024-07-11 09:47:44 +02:00
ISO_Fortran_binding.h
kinds-override.h
libgfortran.h Fortran: Fix rejecting class arrays of different ranks as storage association argument and add un/pack_class. [PR96992] 2024-07-11 09:47:44 +02:00
libgfortran.spec.in
libtool-version
Makefile.am Fortran: Fix rejecting class arrays of different ranks as storage association argument and add un/pack_class. [PR96992] 2024-07-11 09:47:44 +02:00
Makefile.in Fortran: Fix rejecting class arrays of different ranks as storage association argument and add un/pack_class. [PR96992] 2024-07-11 09:47:44 +02:00
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh