[patch, fortran] Fix PR 82567

Thomas Koenig tkoenig@netcologne.de
Tue Oct 17 22:36:00 GMT 2017


Hello world,

this patch fixes a regression with long compile times,
which came about due to our handling of array constructors
at compile time.  This, togeteher with a simplification in
front end optimization, led to long compile times and large
code.

Regression-tested. OK for trunk and the other affected branches?

Regards

	Thomas

2917-10-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/82567
         * frontend-passes.c (combine_array_constructor): If an array
         constructor is all constants and has more elements than a small
         constant, don't convert a*[b,c] to [a*b,a*c] to reduce compilation
         times.

2917-10-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/82567
         * gfortran.dg/array_constructor_51.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: array_constructor_51.f90
Type: text/x-fortran
Size: 450 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171017/e0b54c27/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 1554 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171017/e0b54c27/attachment-0001.bin>


More information about the Fortran mailing list