gcc/libgfortran/runtime
Tobias Burnus ed3e8a988e libgfortran's ISO_Fortran_binding.c: Use GCC11 version for backward-only code [PR108056]
Since GCC 12, the conversion between the array descriptors formats - the
internal (GFC) and the C binding one (CFI) - moved to the compiler itself
such that the cfi_desc_to_gfc_desc/gfc_desc_to_cfi_desc functions are only
used with older code (GCC 9 to 11).  The newly added checks caused asserts
as older code did not pass the proper values (e.g. real(4) as effective
argument arrived as BT_ASSUME type as the effective type got lost inbetween).

As proposed in the PR, revert to the GCC 11 version - known bugs is better
than some fixes and new issues. Still, GCC 12 is much better in terms of
TS29113 support and should really be used.

This patch uses the current libgomp version of the GCC 11 branch, except
it fixes the GFC version number (which is 0), uses calloc instead of malloc,
and sets the lower bound to 1 instead of keeping it as is for
CFI_attribute_other.

(cherry picked from commit e205ec03f0)

(This cherry pick excludes an accidentally committed file, which was
removed in follow-up commit 18af26fc375398f0a7cd7bae5aabebd447f8c899.)

libgfortran/ChangeLog:

	PR libfortran/108056
	* runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc,
	gfc_desc_to_cfi_desc): Mostly revert to GCC 11 version for
	those backward-compatiblity-only functions.
2022-12-21 08:23:02 +01:00
..
backtrace.c Update copyright years. 2022-01-03 10:42:10 +01:00
bounds.c Update copyright years. 2022-01-03 10:42:10 +01:00
compile_options.c Update copyright years. 2022-01-03 10:42:10 +01:00
convert_char.c Update copyright years. 2022-01-03 10:42:10 +01:00
environ.c Allow for multiple defaults in endianness and r16 in GFORTRAN_CONVERT_UNIT. 2022-01-17 07:29:35 +01:00
error.c Update copyright years. 2022-01-03 10:42:10 +01:00
fpu.c Update copyright years. 2022-01-03 10:42:10 +01:00
in_pack_generic.c Update copyright years. 2022-01-03 10:42:10 +01:00
in_unpack_generic.c Update copyright years. 2022-01-03 10:42:10 +01:00
ISO_Fortran_binding.c libgfortran's ISO_Fortran_binding.c: Use GCC11 version for backward-only code [PR108056] 2022-12-21 08:23:02 +01:00
main.c Update copyright years. 2022-01-03 10:42:10 +01:00
memory.c Update copyright years. 2022-01-03 10:42:10 +01:00
minimal.c Update copyright years. 2022-01-03 10:42:10 +01:00
pause.c Update copyright years. 2022-01-03 10:42:10 +01:00
select_inc.c Update copyright years. 2022-01-03 10:42:10 +01:00
select.c Update copyright years. 2022-01-03 10:42:10 +01:00
stop.c Update copyright years. 2022-01-03 10:42:10 +01:00
string.c Update copyright years. 2022-01-03 10:42:10 +01:00