]> gcc.gnu.org Git - gcc.git/commit
Fortran: set version field in CFI_cdesc_t to CFI_VERSION
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 1 Jul 2021 20:07:59 +0000 (13:07 -0700)
committerSandra Loosemore <sandra@codesourcery.com>
Thu, 1 Jul 2021 20:07:59 +0000 (13:07 -0700)
commit58b735b70b03884052c80ac032df90eed7059f8d
tree6a63ca354a1091d8cfe074e580cbca9147f3ec72
parentb97486f465ff7ee2ed1a5305bcc211563891c37e
Fortran: set version field in CFI_cdesc_t to CFI_VERSION

When converting a GFC descriptor to a CFI descriptor, it was
incorrectly copying the version number from the former to the latter.
It should be using the value of CFI_VERSION instead (currently 1).
Going the other direction, the GFC version field is initialized to
zero elsewhere, so do that here too.

2021-06-30  Tobias Burnus  <tobias@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

libgfortran/
* runtime/ISO_Fortran_binding.c (cfi_desc_to_gfc_desc):
Initialize version field to 0.
(gfc_desc_to_cfi_desc): Initialize version field to CFI_VERSION.
libgfortran/runtime/ISO_Fortran_binding.c
This page took 0.07025 seconds and 5 git commands to generate.