[Patch, fortran] PR40472 - Simplification of spread intrinsic takes a long time

Paul Richard Thomas paul.richard.thomas@gmail.com
Sat Jun 20 23:18:00 GMT 2009


Dear All,

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.

Bootstraps and regtests on FC9/x86_64 - OK for trunk and 4.4?

Paul

2009-06-21  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40472
	* simplify.c (gfc_simplify_spread): Restrict the result size to
	the limit for an array constructor.

2009-06-21  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/40472
	* gfortran.dg/spread_size_limit.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 1566 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090620/d8a5140d/attachment.bin>


More information about the Gcc-patches mailing list