aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/intrinsic.texi
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2009-02-18 19:09:38 +0100
committerTobias Burnus <burnus@gcc.gnu.org>2009-02-18 19:09:38 +0100
commit8c685e616f341221fd2682797a7d3219d5c7dcd8 (patch)
treeec94f53633cf407702e0abc001952c58ca3aeca7 /gcc/fortran/intrinsic.texi
parent19e56697e4fab8cee82e87882a526835b5c2cb3e (diff)
downloadgcc-8c685e616f341221fd2682797a7d3219d5c7dcd8.zip
gcc-8c685e616f341221fd2682797a7d3219d5c7dcd8.tar.gz
gcc-8c685e616f341221fd2682797a7d3219d5c7dcd8.tar.bz2
intrinsic.texi (MALLOC): Make example more portable.
2009-02-18 Tobias Burnus <burnus@net-b.de> * intrinsic.texi (MALLOC): Make example more portable. From-SVN: r144266
Diffstat (limited to 'gcc/fortran/intrinsic.texi')
-rw-r--r--gcc/fortran/intrinsic.texi7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 1243795..711eecb 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -7333,15 +7333,12 @@ C pointers (@code{sizeof(void *)}).
@item @emph{Example}:
The following example demonstrates the use of @code{MALLOC} and
-@code{FREE} with Cray pointers. This example is intended to run on
-32-bit systems, where the default integer kind is suitable to store
-pointers; on 64-bit systems, ptr_x would need to be declared as
-@code{integer(kind=8)}.
+@code{FREE} with Cray pointers.
@smallexample
program test_malloc
+ implicit none
integer i
- integer ptr_x
real*8 x(*), z
pointer(ptr_x,x)