[patch, fortran] Further dependency improvements

Thomas Koenig tkoenig@netcologne.de
Sat Aug 28 21:02:00 GMT 2010


After some more checking, I found that one useful case was missed:
Conversion functions weren't 'PURE.

This should also open the way to resolving PR 34145.

OK for trunk?

	Thomas

2010-08-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/45159
	* dependency.c (gfc_deb_compare_expr):  Compare equal for equal
	arglists for pure user functions, or for those intrinsic
	functions which are also pure.
	* intrinsics.c (add_conv):  Mark conversion functions as pure.
	(add_char_conversions):  Likewise.

2010-08-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/45159
	* gfortran.dg/dependency_34.f90:  New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: p4.diff
Type: text/x-patch
Size: 2759 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100828/e792acec/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dependency_34.f90
Type: text/x-fortran
Size: 479 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100828/e792acec/attachment-0001.bin>


More information about the Fortran mailing list