]> 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 08:26:18 +0000 (11:26 +0300)
committerJanne Blomqvist <jb@gcc.gnu.org>
Sun, 12 May 2019 08:26:18 +0000 (11:26 +0300)
commit4c0164573e213045052ca6bc3113d7d63cf62816
tree99ca3a0763fbd7cf9794ed6e1f3e21c43d3e7968
parent1fa26ccd67ea2b458f4fb9ba8779c11059353d0f
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: r271106
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/parse.c