https://gcc.gnu.org/g:58ef04d26d1ba9eaf54fabc84b656b6b965d83ac
commit r13-8898-g58ef04d26d1ba9eaf54fabc84b656b6b965d83ac Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Tue Jul 9 00:22:24 2024 +0000 Daily bump. Diff: --- gcc/DATESTAMP | 2 +- gcc/fortran/ChangeLog | 31 +++++++++++++++++++++++++++++++ gcc/testsuite/ChangeLog | 11 +++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index d50aabd12dd3..b01fad6bd4fc 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240708 +20240709 diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 21654771942e..915e08ca130f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,34 @@ +2024-07-08 Paul Thomas <pa...@gcc.gnu.org> + + Backported from master: + 2024-05-12 Paul Thomas <pa...@gcc.gnu.org> + + PR fortran/84006 + PR fortran/100027 + PR fortran/98534 + * iresolve.cc (gfc_resolve_transfer): Emit a TODO error for + unlimited polymorphic mold. + * trans-expr.cc (gfc_resize_class_size_with_len): Use the fold + even if a block is not available in which to fix the result. + (trans_class_assignment): Enable correct assignment of + character expressions to unlimited polymorphic variables using + lhs _len field and rse string_length. + * trans-intrinsic.cc (gfc_conv_intrinsic_storage_size): Extract + the class expression so that the unlimited polymorphic class + expression can be used in gfc_resize_class_size_with_len to + obtain the storage size for character payloads. Guard the use + of GFC_DECL_SAVED_DESCRIPTOR by testing for DECL_LANG_SPECIFIC + to prevent the ICE. Also, invert the order to use the class + expression extracted from the argument. + (gfc_conv_intrinsic_transfer): In same way as 'storage_size', + use the _len field to obtaining the correct length for arg 1. + Add a branch for the element size in bytes of class expressions + with provision to make use of the unlimited polymorphic _len + field. Again, the class references are explicitly identified. + 'mold_expr' was already declared. Use it instead of 'arg'. Do + not fix 'dest_word_len' for deferred character sources because + reallocation on assign makes use of it before it is assigned. + 2024-06-19 Harald Anlauf <anl...@gmx.de> Backported from master: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b35264c40d8f..2c17953b2d7a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,14 @@ +2024-07-08 Paul Thomas <pa...@gcc.gnu.org> + + Backported from master: + 2024-05-12 Paul Thomas <pa...@gcc.gnu.org> + + PR fortran/84006 + PR fortran/100027 + PR fortran/98534 + * gfortran.dg/storage_size_7.f90: New test. + * gfortran.dg/transfer_class_4.f90: New test. + 2024-07-05 Georg-Johann Lay <a...@gjlay.de> Backported from master: