]> git.ipfire.org Git - thirdparty/gcc.git/commit
Backport Fortran BIND(C) fixes
authorTobias Burnus <tobias@codesourcery.com>
Mon, 4 Nov 2019 14:14:43 +0000 (14:14 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 4 Nov 2019 14:14:43 +0000 (15:14 +0100)
commit525c4e8d3ae4e49657d1253f448fb9f2293558f8
treee46b39fbfeafce6c593d2594f78995edb5c24be2
parent3e40a2cfaabe3a7ad4a1a444d4353e5916ac4b89
Backport Fortran BIND(C) fixes

        gcc/fortran/
        Backport from mainline
        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        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.

        gcc/testsuite/
        Backport from mainline
        2019-10-31  Jakub Jelinek  <jakub@redhat.com>

        PR fortran/92284
        * gfortran.dg/bind_c_array_params_3_aux.c: Include
        ../../../libgfortran/ISO_Fortran_binding.h rather than
        ISO_Fortran_binding.h.

        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        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.

        2019-10-31  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92277
        * fortran.dg/pr92277.f90: New.

From-SVN: r277781
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]
gcc/testsuite/gfortran.dg/pr92277.f90 [new file with mode: 0644]
libgfortran/runtime/ISO_Fortran_binding.c