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]

Re: [patch, libfortran] Fix for PR 21127, complex reshape


On Fri, Apr 29, 2005 at 02:01:41PM -0700, Richard Henderson wrote:
> On Fri, Apr 29, 2005 at 10:27:22PM +0200, Thomas Koenig wrote:
> > WRT 4.0:  I am not sure what the policy for 4.0.1 is.  This patch
> > changes the library interface by removing reshape_4 and reshape_8
> > and replacing them with reshape_i4 and reshape_i8, respectively.
> 
> So, no, this won't be ok for 4.0.  You can change the 4.0 front end
> to use the generic routine instead, but you can't rename existing
> functions.

OK.

Here's another way of doing this.  With this, reshape_4 and reshape_8
keep their orignal names.

Regression-tested on mainline.  Ok for mainline and for 4.0, once
the regression test has been passed?

2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

	* fortran/iresolve.c (gfc_resolve_reshape): Add 
	gfc_type_letter (BT_COMPLEX) for complex to
	to resolved function name.

2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

	* Makefile.am:  Add generated/reshape_c4.c and
	generated/reshape_c8.c.
	* Makefile.in:  Regenerated.
	* m4/iparm.m4:  Define ccode to be c4 or c8 for
	complex types, 4 or 8 otherwise.
	* m4/reshape.m4:  Use rtype_ccode instead of rtype_kind
	in function name.
	* generated/reshape_c4.c: New file.
	* generated/reshape_c8.c: New file.
	
2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

	* gfortran.dg/reshape-complex.f90:  New test.

Attachment: reshape-complex.diff
Description: Text document

Attachment: reshape-complex.f90
Description: Text document


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