Re: [PATCH] Use RANGE_EXPR in Fortran array initializers some more (PR fortran/43210)

2019-02-26 Thread Jakub Jelinek
On Tue, Feb 26, 2019 at 08:37:28AM +, Paul Richard Thomas wrote: > Your timing is astonishing. This was next on my list of TODOs - not > for this particular PR but to deal with the rodata bloat eg. 84487. I > presume that this patch will make the latter go away? > > Yes, this is good for

Re: [PATCH] Use RANGE_EXPR in Fortran array initializers some more (PR fortran/43210)

2019-02-26 Thread Paul Richard Thomas
Hi Jakub, Your timing is astonishing. This was next on my list of TODOs - not for this particular PR but to deal with the rodata bloat eg. 84487. I presume that this patch will make the latter go away? Yes, this is good for trunk and, if it fixes 84487, 8-branch as well. Thanks Paul On Mon,

[PATCH] Use RANGE_EXPR in Fortran array initializers some more (PR fortran/43210)

2019-02-25 Thread Jakub Jelinek
Hi! When initializing whole array with a const, we can save quite some compile time memory (and time in some cases) by using RANGE_EXPRs, instead of duplicating the same initializer thousands of times in the CONSTRUCTOR. In some cases the gimplifier even can optimize those better.