http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47267
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org, | |dfranke at gcc dot gnu.org, | |jvdelisle at gcc dot | |gnu.org --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-12 13:51:43 UTC --- You can use -fmax-array-constructor=<n> to tune this. However, I think currently there is no distinction made between constructors which have to be be run at compile time (a) and those which can be run at compile time (b). <n> is currently 65535. Example for (a): Parameter array or initialization expression INTEGER, PARAMETER :: Niter=30000000 INTEGER, PARAMETER :: ARRAY(Niter) = (/(i,i=1,Niter)/) Example for (b): Assignment to an array INTEGER, PARAMETER :: Niter=30000000 INTEGER :: ARRAY(Niter) ARRAY(Niter) = (/(i,i=1,Niter)/)