This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fortran-dev, patch] PR32890 - add simplifier and argument check for PACK
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Daniel Franke <franke dot daniel at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Mar 2009 12:16:59 -0700
- Subject: Re: [fortran-dev, patch] PR32890 - add simplifier and argument check for PACK
- References: <200903231948.07975.franke.daniel@gmail.com>
On Mon, Mar 23, 2009 at 07:48:07PM +0100, Daniel Franke wrote:
> Attached patch adds a simplifier for the PACK intrinsic and implements
> additional compile-time argument checks.
>
>
> 2009-03-23 Daniel Franke <franke.daniel@gmail.com>
>
> PR fortran/32890
> * intrinsic.h (gfc_simplify_pack): New prototype.
> * intrinsic.c (add_functions): Added simplifier-callback to PACK.
> * simplify.c (is_constant_array_expr): Moved to beginning of file.
> (gfc_simplify_pack): New.
> * check.c (gfc_check_pack): Check that VECTOR has enough elements.
>
> 2009-03-23 Daniel Franke <franke.daniel@gmail.com>
>
> PR fortran/32890
> * gfortran.dg/pack_assign_1.f90: New.
> * gfortran.dg/pack_vector_1.f90: New.
>
>
> Bootstrapped and regression tested on i686-pc-linux-gnu.
> Ok for dev and 4.5?
>
OK for both.
Can you add a comment above ADVANCE about what it does?
--
Steve