summaryrefslogtreecommitdiffstats
path: root/libgfortran
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-20 20:16:15 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2009-08-20 20:16:15 +0000
commit04c6c482d8fc5479d481e2f4ccb82b0bef4f96da (patch)
tree5e2a23a434d417969e7331bff3bf8a35314f62e9 /libgfortran
parent7a8f32c92dba770eac77a2b7013e090d02e28c43 (diff)
downloadppe42-gcc-04c6c482d8fc5479d481e2f4ccb82b0bef4f96da.tar.gz
ppe42-gcc-04c6c482d8fc5479d481e2f4ccb82b0bef4f96da.zip
2009-08-20 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/40962 * iso_c_binding.c (c_f_pointer_u0): Multiply stride by previous stride. 2009-08-20 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/40962 * c_f_pointer_tests_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150974 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog6
-rw-r--r--libgfortran/intrinsics/iso_c_binding.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 7a0f056c9c9..b22306f8f47 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,9 @@
+2009-08-20 Thomas Koenig <tkoenig@gcc.gnu.org>
+
+ PR libfortran/40962
+ * iso_c_binding.c (c_f_pointer_u0): Multiply stride by
+ previous stride.
+
2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
* Makefile.am (LTLDFLAGS): Add -bindir flag.
diff --git a/libgfortran/intrinsics/iso_c_binding.c b/libgfortran/intrinsics/iso_c_binding.c
index 0dd7449df6d..569b122f236 100644
--- a/libgfortran/intrinsics/iso_c_binding.c
+++ b/libgfortran/intrinsics/iso_c_binding.c
@@ -152,7 +152,7 @@ ISO_C_BINDING_PREFIX (c_f_pointer_u0) (void *c_ptr_in,
}
else
{
- str = GFC_DESCRIPTOR_EXTENT(f_ptr_out,i-1);
+ str = str * GFC_DESCRIPTOR_EXTENT(f_ptr_out,i-1);
f_ptr_out->offset += str;
}
OpenPOWER on IntegriCloud