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]

PR 23902 -- fix scalar mask for minval/maxval/sum/product


:ADDPATCH fortran:

Hello world,

this fixes minval/maxval/sum/product with a scalar mask for the attached
test cases.  Regression-tested on i686-pc-linux-gnu.

There are still other issues with scalar mask, in the cases where we
call the library, so this probably does not close the PR completely.

Please take a good look at this, because I am still very new at
this tree-stuff.

OK for trunk, and for 4.1 once it reopens?

2006-02-21  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/23902
	* trans-intrinsic.c (gfc_conv_intrinsic_arith):  If the
	mask expression exists and has rank 0, enclose the generated
	loop in an "if (mask)".
	* (gfc_conv_intrinsic_minmaxloc):  Likewise.

2006-02-21  Thomas Koenig  <Thomas.Koenig@online.de>

	PR fortran/23902
	scalar_mask_1.f90:  New test.

Attachment: product-2.diff
Description: Text document

Attachment: scalar_mask_1.f90
Description: Text document


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