This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [fortran-dev, patch] PR32890 - add simplifier and argument check for PACK


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]