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]

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


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.

Attachment: pr38184_02.diff
Description: Text document


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