r268231 - in /trunk/gcc: fortran/ChangeLog fort...

pault@gcc.gnu.org pault@gcc.gnu.org
Thu Jan 24 07:19:00 GMT 2019


Author: pault
Date: Thu Jan 24 07:19:49 2019
New Revision: 268231

URL: https://gcc.gnu.org/viewcvs?rev=268231&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_3.c
    trunk/gcc/testsuite/gfortran.dg/ISO_Fortran_binding_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list