[Patch, fortran] PR fortran/38184 invariant RESHAPE not expanded if SOURCE is empty.

Mikael Morin mikael.morin@tele2.fr
Wed Nov 19 21:44:00 GMT 2008


Hello,

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?

Mikael



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.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr38184_02.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081119/a205c651/attachment.ksh>


More information about the Gcc-patches mailing list