https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101305

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Sandra Loosemore <san...@gcc.gnu.org>:

https://gcc.gnu.org/g:fef67987cf502fe322e92ddce22eea7ac46b4d75

commit r12-2551-gfef67987cf502fe322e92ddce22eea7ac46b4d75
Author: Sandra Loosemore <san...@codesourcery.com>
Date:   Thu Jul 8 08:21:20 2021 -0700

    Bind(C): Fix type encodings in ISO_Fortran_binding.h

    ISO_Fortran_binding.h had many incorrect hardwired kind encodings in
    the definitions of the CFI_type_* macros.  Additionally, not all
    targets support all the defined type encodings, and the Fortran
    standard requires those macros to have a negative value.

    This patch changes ISO_Fortran_binding.h to use sizeof instead of
    hard-coded sizes, and assembles it from fragments that reflect the
    set of types supported by the target.

    2021-07-22  Sandra Loosemore  <san...@codesourcery.com>
                Tobias Burnus  <tob...@codesourcery.com>

    libgfortran/
            PR libfortran/101305
            * ISO_Fortran_binding.h: Fix hard-coded sizes and split into...
            * ISO_Fortran_binding-1-tmpl.h: New file.
            * ISO_Fortran_binding-2-tmpl.h: New file.
            * ISO_Fortran_binding-3-tmpl.h: New file.
            * Makefile.am: Add rule for generating ISO_Fortran_binding.h.
            Adjust pathnames to that file.
            * Makefile.in: Regenerated.
            * mk-kinds-h.sh: New file.
            * runtime/ISO_Fortran_binding.c: Fix include path.

Reply via email to