PR fortran/92470 Fixes for CFI_address
authorTobias Burnus <tobias@codesourcery.com>
Tue, 12 Nov 2019 19:33:10 +0000 (19:33 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 12 Nov 2019 19:33:10 +0000 (20:33 +0100)
commitfde7112d79174947596b4697f254f169f0b11811
tree0cd1794f67116522ffea80ef46db50c6bb33fc63
parentd200a49f5c83fa0f2e7332aecf69b6ab4a51b052
PR fortran/92470 Fixes for CFI_address

        libgfortran/
        PR fortran/92470
        * runtime/ISO_Fortran_binding.c (CFI_address): Handle non-zero
        lower_bound; update error message.
        (CFI_allocate): Fix comment typo.
        (CFI_establish): Fix identation, fix typos, don't check values of 'dv'
        argument.

        gcc/testsuite/
        PR fortran/92470
        * gfortran.dg/ISO_Fortran_binding_17.c: New.
        * gfortran.dg/ISO_Fortran_binding_17.f90: New.
        * gfortran.dg/ISO_Fortran_binding_1.c (elemental_mult_c, allocate_c,
        section_c, select_part_c): Update for CFI_{address} changes;
        add asserts.

From-SVN: r278101
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_1.c
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ISO_Fortran_binding_17.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/runtime/ISO_Fortran_binding.c