r122103 - in /trunk/gcc: fortran/ChangeLog fort...
sayle@gcc.gnu.org
sayle@gcc.gnu.org
Sun Feb 18 20:05:00 GMT 2007
Author: sayle
Date: Sun Feb 18 20:05:00 2007
New Revision: 122103
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122103
Log:
* trans-array.c (gfc_build_constant_array_constructor): When the
shape of the constructor is known, use that to construct the
gfc_array_spec.
(gfc_trans_constant_array_constructor): Initialize the "info"
information for all of the dimensions of the array constructor.
(constant_array_constructor_loop_size): New function.
(gfc_trans_array_constructor): Use it to determine whether a
loop is suitable for "constant array constructor" optimization.
* trans-intrinsic.c (gfc_conv_intrinsic_anyall): Use fold_build2
instead of build2, to avoid conditions like "(a != b) != 0".
* gfortran.dg/array_constructor_15.f90: New test case.
Added:
trunk/gcc/testsuite/gfortran.dg/array_constructor_15.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-array.c
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list