[Patch, fortran] PR fortran/38184 invariant RESHAPE not expanded if SOURCE is empty.
Tobias Burnus
burnus@net-b.de
Mon Nov 24 01:20:00 GMT 2008
Mikael Morin wrote:
> this is only a missed optimization, but it is obvious on the other hand,
> and it should have a limited impact (empty arrays only).
>
> regression-tested on x86_64-unknown-linux-gnu, ok for 4.4? 4.3 as well?
>
OK for 4.4, I think there is no need for 4.3. (As James has shown this
is also a rejects-valid PR.)
Sorry for missing the patch. Is there any other unreviewed patch around?
Tobias
> 2008-11-19 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/38184
> * simplify.c (is_constant_array_expr): Return true instead of false
> if the array constructor is empty
>
> 2008-11-19 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/38184
> * gfortran.dg/reshape_empty_1.f03: New test.
>
>
More information about the Gcc-patches
mailing list