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: [Patch, fortran] PR40472 - Simplification of spread intrinsic takes a long time


On Sunday 21 June 2009 00:39:05 Paul Richard Thomas wrote:
> This is another obvious one - at the moment, SPREAD has the ability to
> simplify an array to any size.  This is clearly not right.  As a
> simplifying (excuse the pun) assumption, I have supposed that
> gfc_simplify_spread should not try to emit an array of larger than
> gfc_option.flag_max_array_constructor.

Besides the compile-time issue, I don't see why this is "clearly not right"?!
Also, I'm quite sure that this not only applies to SPREAD, but very likely to 
all other F2003 simplifiers implemented in 4.5.

As noted in the PR, I strongly believe that the linear constructor list needs 
to go more sooner than later.

That said, ok as a workaround for trunk for now - but not for 4.4 (there is no 
such simplifier for spread ;)

Cheers

	Daniel


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