[fortran-dev, patch] PR32890 - add simplifier and argument check for PACK
Daniel Franke
franke.daniel@gmail.com
Mon Mar 23 18:55:00 GMT 2009
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?
Cheers
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32890.diff
Type: text/x-patch
Size: 8185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090323/933ed4f8/attachment.bin>
More information about the Gcc-patches
mailing list