]> git.ipfire.org Git - thirdparty/gcc.git/commit
2019-01-24 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jan 2019 07:19:49 +0000 (07:19 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 Jan 2019 07:19:49 +0000 (07:19 +0000)
commit297fd295d570dcad943d33a36f0a6d6687e6faa9
treeab6ba45df5faf589744fea7764bd01fa7204d8b7
parent80a091563bc802b373cb3e350b081c6454726b85
2019-01-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88929
* trans-array.c (gfc_conv_descriptor_elem_len): New function.
* trans-array.h : Add prototype for above.
* trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Take account of
assumed rank arrays being flagged by rank = -1 in expressions.
Intent in arrays need a pointer to a copy of the data to be
assigned to the descriptor passed for conversion. This should
then be freed, together with the CFI descriptor on return from
the C call.

2019-01-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88929
* gfortran.dg/ISO_Fortran_binding_3.f90 : New test
* gfortran.dg/ISO_Fortran_binding_3.c : Subsidiary source.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_3.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_3.f90 [new file with mode: 0644]