This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libfortran] Fix PR 40187
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 May 2009 11:32:41 -0700
- Subject: Re: [patch, libfortran] Fix PR 40187
- References: <1243079186.2884.2.camel@meiner.onlinehome.de>
On Sat, May 23, 2009 at 01:46:26PM +0200, Thomas Koenig wrote:
> Hello world,
>
> this fixes PR 40187, where we didn't use strides in the "shape" argument
> to c_f_pointer.
>
> Regression-tested on trunk, on i686-pc-linux-gnu. OK for trunk and
> fortran-dev?
>
> Thomas
>
> 2009-05-23 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> PR libfortran/40187
> * intrinsics/iso_c_binding.c (c_f_pointer_u0): Take care
> of stride in "shape" argument.
>
> module c_f_pointer_shape_tests_4
*_tests_4
> end module c_f_pointer_shape_tests_4
> ! { dg-final { cleanup-modules "c_f_pointer_shape_tests_2" } }
*_tests_2?
OK with the above change.
--
Steve