diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2025-01-03 18:31:07 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2025-01-03 18:31:07 +0100 |
commit | 92ad6d4ebfe5454b9299f295926517bd453bc4a2 (patch) | |
tree | 22b87b85786259dc967e61c461a72f2ebe4282a2 /gcc | |
parent | b11d85f2531be779c5f8ad82a6a139d5110b3cd5 (diff) | |
download | gcc-92ad6d4ebfe5454b9299f295926517bd453bc4a2.zip gcc-92ad6d4ebfe5454b9299f295926517bd453bc4a2.tar.gz gcc-92ad6d4ebfe5454b9299f295926517bd453bc4a2.tar.bz2 |
Mention generating C prototypes in the C interop documentation.
gcc/fortran/ChangeLog:
* gfortran.texi: New subsection "Generating C prototypes from
Fortran".
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fortran/gfortran.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 430ede4..1166672 100644 --- a/gcc/fortran/gfortran.texi +++ b/gcc/fortran/gfortran.texi @@ -2918,6 +2918,7 @@ C or some other language instead of Fortran, see * Interoperable Subroutines and Functions:: * Working with C Pointers:: * Further Interoperability of Fortran with C:: +* Generating C prototypes from Fortran:: @end menu Since Fortran 2003 (ISO/IEC 1539-1:2004(E)) there is a @@ -3322,6 +3323,20 @@ are converted to the specified form. If you need to access GNU Fortran's internal array descriptor, you can use the Chasm Language Interoperability Tools, @url{http://chasm-interop.sourceforge.net/}. +@node Generating C prototypes from Fortran +@subsection Generating C prototypes from Fortran +@cindex prototypes +@cindex C prototypes +The options @option{-fc-prototypes} can be used to write out C +declatations and function prototypes for @code{BIND(C)} entities. +The same can be done for writing out prototypes for external +procedures using @option{-fc-prototypes-external}, +@pxref{Interoperability Options}. + +Standard Fortran does not specify an interoperable type for C's +@code{unsigned} integer types. For interoperability with unsigned +types, GNU Fortran provides unsigned integers, @pxref{Unsigned integers}. + @node GNU Fortran Compiler Directives @section GNU Fortran Compiler Directives @cindex GNU Fortran Compiler Directives |