This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, libfortran] Bounds checking for unpack
- From: Thomas Koenig <tkoenig at netcologne dot de>
- To: fortran at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 17 Aug 2009 20:22:24 +0200
- Subject: Re: [patch, libfortran] Bounds checking for unpack
- References: <1250188518.4697.16.camel@meiner.onlinehome.de>
On Thu, 2009-08-13 at 20:35 +0200, Thomas Koenig wrote:
ping?
> Hello world,
>
> I'm back from holidays now (I survived two full weeks without Internet
> access!), and here's my first patch: Bounds checking for unpack.
>
> This patch introduces a new function to count the true values in a
> logical array. In a followup-patch, I want to use this function from
> within the pack intrinsic, too, in order to improve maintainability a
> little bit.
>
> Regression-tested on x86_64-unknown-linux-gnu.
>
> OK for trunk?
>
> Thomas
>
> 2009-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> PR libfortran/34670
> * runtime/bounds.c (count_0): New function.
> * intrinsics/unpack_generic (unpack_bounds): New function.
> (unpack_internal): Remove zero stride checks.
> (unpack1): Use unpack_bounds.
> (unpack1_char): Likeweise.
> (unpack1_char4): Likewise
> (unpack0): Likewise.
> (unpack0_char): Likewise.
> (unpack0_char4): Likewise.
>
> 2009-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
>
> PR libfortran/34670
> * gfortran.dg/unpack_bounds_1.f90: New test.
> * gfortran.dg/unpack_bounds_2.f90: New test.
> * gfortran.dg/unpack_bounds_3.f90: New test.
>
>