This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/20923] gfortran slow for large array constructors
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2007 14:43:00 -0000
- Subject: [Bug fortran/20923] gfortran slow for large array constructors
- References: <bug-20923-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from tobi at gcc dot gnu dot org 2007-10-06 14:43 -------
And this looks like the right place for an attack:
/* Given an array constructor, determine if the constructor is
constant or not by expanding it and making sure that all elements
are constants. This is a bit of a hack since something like (/ (i,
i=1,100000000) /) will take a while as* opposed to a more clever
function that traverses the expression tree. FIXME. */
int
gfc_constant_ac (gfc_expr *e)
{
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20923