[patch, fortran] Fix PR 36931, more array dependencies

Thomas Koenig tkoenig@netcologne.de
Sat Sep 4 09:30:00 GMT 2010


Hello world,

here a few more temporary eliminations, for code like

  a = f() + b

After unsuccessfully trying to understand how to do this in trans-*,
I used a transformation of the front end trees, in the front end
optimization pass.

Regression-tested.  OK for trunk?

	Thomas

2010-09-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/36931
	* frontend-passes.c (optimize_binop_array_assignment):  New
	function.
	(optimize_assignment):  Call it.

2010-09-04  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/36931
	* gfortran.dg/dependency_35.f90:  New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_35.f90
Type: text/x-fortran
Size: 483 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/d764087e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36931-1.diff
Type: text/x-patch
Size: 2561 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100904/d764087e/attachment-0001.bin>


More information about the Fortran mailing list