This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/45435] Automatically generate C interop interface blocks from C code


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

--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Tue Aug  1 17:59:11 2017
New Revision: 250791

URL: https://gcc.gnu.org/viewcvs?rev=250791&root=gcc&view=rev
Log:
2017-08-01  Thomas Koenig  <tkoenig@gcc.gnu.org>

        PR fortran/45435
        * lang.opt (fc-prototypes): Add option.
        * gfortran.h (gfc_typespec): Add interop_kind to struct.
        (gfc_dump_c_prototypes): Add prototype.
        * decl.c (gfc_match_kind_spec): Copy symbol used for kind to typespec.
        * parse.c (gfc_parse_file): Call gfc_dump_prototypes.
        * dump-parse-tree.c (gfc_dump_c_prototypes): New function.
        (type_return): New enum.
        (get_c_type_name): New function.
        (write_decl): New function.
        (write_type): New function.
        (write_variable): New function.
        (write_proc): New function.
        (write_interop_decl): New function.
        * invoke.texi: Document -fc-prototypes.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/decl.c
    trunk/gcc/fortran/dump-parse-tree.c
    trunk/gcc/fortran/gfortran.h
    trunk/gcc/fortran/invoke.texi
    trunk/gcc/fortran/lang.opt
    trunk/gcc/fortran/parse.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]