]> git.ipfire.org Git - thirdparty/gcc.git/commit
fortran: C++ support for generating C prototypes
authorJanne Blomqvist <jb@gcc.gnu.org>
Sun, 12 May 2019 18:48:44 +0000 (21:48 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Sun, 12 May 2019 18:48:44 +0000 (21:48 +0300)
commit1906551ccc54e111de84395c8163c9dcf15aec41
tree956a0c14ddeaf166402cc7f7d993b3dcd683b7bc
parentc32199acd16556a77064b2ff3c9c429f54886b1b
fortran: C++ support for generating C prototypes

When generating C prototypes for Fortran procedures with the
-fc-prototypes and -fc-prototypes-external options, print a snippet
defining macros for complex types, and add C++ support by suppressing
mangling.

fortran/ChangeLog:

2019-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

* dump-parse-tree.c (get_c_type_name): Use macros for complex type
names.
* parse.c (gfc_parse_file): Define complex macros, add CPP support
when printing C prototypes.

From-SVN: r271109
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/parse.c