summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 08:57:02 +0000
committerburnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-19 08:57:02 +0000
commit2ecc808e4b826d33617156636cec2fc6f40bb716 (patch)
treee00f38bf10f27b7f04e1aed398e6b9e9378fa3f1 /gcc
parent46af9326c4488a39c029354b43b0345e5a49754f (diff)
downloadppe42-gcc-2ecc808e4b826d33617156636cec2fc6f40bb716.tar.gz
ppe42-gcc-2ecc808e4b826d33617156636cec2fc6f40bb716.zip
2009-11-19 Tobias Burnus <burnus@net-b.de>
* gfortran.texi (Interoperable Subroutines and Functions): Fix example. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154326 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/gfortran.texi7
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index e1f72a12f98..fc0a0335684 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-19 Tobias Burnus <burnus@net-b.de>
+
+ * gfortran.texi (Interoperable Subroutines and Functions): Fix
+ example.
+
2009-11-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/42072
diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index c4992ef2bce..1430c8a658e 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -2009,9 +2009,10 @@ Thus the following C prototype
matches the Fortran declaration
@smallexample
- integer(c_int) func(i,j)
- integer, VALUE :: i
- integer :: j
+ integer(c_int) function func(i,j)
+ use iso_c_binding, only: c_int
+ integer(c_int), VALUE :: i
+ integer(c_int) :: j
@end smallexample
Note that pointer arguments also frequently need the @code{VALUE} attribute.
OpenPOWER on IntegriCloud