Fortran] PR92284 – gfc_desc_to_cfi_desc fixes
authorTobias Burnus <burnus@gcc.gnu.org>
Thu, 31 Oct 2019 10:12:55 +0000 (11:12 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 31 Oct 2019 10:12:55 +0000 (11:12 +0100)
commitfc5a970817ad432e06cf22613ac5bd3e85c0e081
tree9c54878c62654d99053197728ae36370287bccb4
parent9ba66bf5b9c69e0e2bcd1b2ab88160bf9b2aa417
Fortran] PR92284 – gfc_desc_to_cfi_desc fixes

        gcc/fortran/
        PR fortran/92284.
        * trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): Free CFI descriptor
        at the end; partial revised revert of Rev. 277502.

        libgfortran/
        PR fortran/92284.
        * runtime/ISO_Fortran_binding.c (gfc_desc_to_cfi_desc):

        gcc/testsuite/
        PR fortran/92284.
        * gfortran.dg/bind-c-intent-out.f90: Update expected dump;
        extend comment.
        * gfortran.dg/bind_c_array_params_3.f90: New.
        * gfortran.dg/bind_c_array_params_3_aux.c: New.

From-SVN: r277663
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind-c-intent-out.f90
gcc/testsuite/gfortran.dg/bind_c_array_params_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_array_params_3_aux.c [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/runtime/ISO_Fortran_binding.c