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] PR fortran/38184 invariant RESHAPE not expanded if SOURCE is empty.


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.
>
>   


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