r271109 - in /branches/gcc-9-branch/gcc/fortran...

jb@gcc.gnu.org jb@gcc.gnu.org
Sun May 12 18:48:00 GMT 2019


Author: jb
Date: Sun May 12 18:48:44 2019
New Revision: 271109

URL: https://gcc.gnu.org/viewcvs?rev=271109&root=gcc&view=rev
Log:
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.


Modified:
    branches/gcc-9-branch/gcc/fortran/ChangeLog
    branches/gcc-9-branch/gcc/fortran/dump-parse-tree.c
    branches/gcc-9-branch/gcc/fortran/parse.c



More information about the Gcc-cvs mailing list